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