Beispiel #1
0
    public void ShowEmoticon(string emoticon, GameObject target, float time)
    {
        SpeechObject so = Instantiate(speechObject);

        so.transform.SetParent(speechLocation.transform);
        so.Init(emoticon, target, mainCamera.gameObject.GetComponent <Camera>(), time);
    }
 public override void Start()
 {
     base.Start();
     speech          = GetComponent <SpeechObject>();
     dialogueTrigger = GetComponent <DialogueTrigger>();
 }