// Use this for initialization void Start() { this.transform.parent.GetComponentInChildren <Animator>().SetBool("Sitting", sitting); if (normalScene) { switch ((int)GameManager.instance.Globals.GetCharacterCount(Character.MATEO)) { case 0: currentDialogue = this.gameObject.AddComponent <Mateo1_1>(); break; case 1: currentDialogue = this.gameObject.AddComponent <Mateo1_2>(); break; case 2: currentDialogue = this.gameObject.AddComponent <Mateo1_3>(); break; default: break; } } else { if (SceneManager.GetActiveScene().name == "Town1") { currentDialogue = this.gameObject.AddComponent <Mateo1_Town1>(); } } }
// Use this for initialization void Start() { this.transform.parent.GetComponentInChildren <Animator>().SetBool("Sitting", sitting); if (normalScene) { switch ((int)GameManager.instance.Globals.GetCharacterCount(Character.SHAY)) { case 0: currentDialogue = this.gameObject.AddComponent <Shay_1>(); break; default: currentDialogue = this.gameObject.AddComponent <Shay_1>(); break; } } else { //exceptions for cutscene dialogue } }