public void Champ4() { IDChamp = 4; if (Smoke != null && Motivation != null) { Animator animator = Smoke.GetComponent <Animator>(); Animator animator2 = Motivation.GetComponent <Animator>(); if (animator != null && animator2 != null) { animator.SetBool("Open", true); animator2.SetBool("Open", true); Smoke.transform.SetSiblingIndex(5); } } }
public void ReturnMotivation() { AM.PlaySound("Return"); IDChamp = 0; if (Smoke != null && Motivation != null) { Animator animator = Smoke.GetComponent <Animator>(); Animator animator2 = Motivation.GetComponent <Animator>(); if (animator != null && animator2 != null) { animator.SetBool("Open", false); animator2.SetBool("Open", false); Smoke.transform.SetSiblingIndex(0); } } }