Commit 2c788970 authored by radow's avatar radow
Browse files

endvoices

parent 5f7b97af
......@@ -10,6 +10,7 @@ public class Postcard : MonoBehaviour, IInteractable
public Transform target;
public Vector3 originalPosition, originalRotation;
public Floaty floaty;
public VoicelineTrigger voice;
public bool interactedwith, finished;
......@@ -31,6 +32,7 @@ public class Postcard : MonoBehaviour, IInteractable
interactedwith = true;
floaty.enabled = false;
curvePath.SetActive(true);
voice.PlayClip();
}
public bool MayInteract()
......
......@@ -32,7 +32,7 @@ public class VoicelineTrigger : MonoBehaviour
}
int i;
void PlayClip()
public void PlayClip()
{
if(i>= clips.Count)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment