Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Animator checkpointAnim;
- private void Start()
- {
- checkpointAnim.enabled = true;
- }
- private void OnTriggerEnter(Collider other)
- {
- checkpointAnim.SetBool("TriggerHit", true);
- this.gameObject.SetActive(false);
- FindObjectOfType<SoundController>().uiSounds.Play();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement