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