//StartCoroutine(AnimationGone()); /*public IEnumerator AnimationGone() * { * isGone = true; * this.gameObject.GetComponent<Animator>().SetBool("palitoGone", true) ; * yield return new WaitForSeconds(1.1f ); * } * * * this.gameObject.GetComponent<Animator>().SetBool("palitoGone", true); * Time.timeScale = 0.25f; * Invoke(nameof(PalitoGone), 0.5f); * * * */ void Start() { playController_script4 = FindObjectOfType <playController4>(); mediaPlayer_scriptButton = FindObjectOfType <mediaPlayer>(); }