Advertisement
jretchy

Untitled

May 16th, 2021
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.33 KB | None | 0 0
  1.  
  2.     public Animator checkpointAnim;
  3.  
  4.     private void Start()
  5.     {
  6.         checkpointAnim.enabled = true;
  7.     }
  8.  
  9.     private void OnTriggerEnter(Collider other)
  10.     {
  11.         checkpointAnim.SetBool("TriggerHit", true);
  12.         this.gameObject.SetActive(false);
  13.         FindObjectOfType<SoundController>().uiSounds.Play();
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement