Exemplo n.º 1
0
 void Start()
 {
     player           = Player.instance;
     dialogueSentance = DialogueSentance.instance;
     dialogueName     = DialogueName.instance;
     dialogueImage    = DialogueImage.instance;
     animator         = GetComponent <Animator>();
     sentances        = new Queue <string>();
 }
Exemplo n.º 2
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
         return;
     }
     if (instance != this)
     {
         Destroy(gameObject);
         return;
     }
 }