// Jimmy Vegas Unity Tutorials // This Script is for colliding using System.Collections; using System.Collections.Generic; using UnityEngine; public class ObstacleCollision : MonoBehaviour { public GameObject thePlayer; public GameObject charModel; void OnTriggerEnter(Collider other) { this.gameObject.GetComponent().enabled = false; thePlayer.GetComponent().enabled = false; charModel.GetComponent().Play("Stumble Backwards"); } }