///////////////////////////////////////////////////////////////// // Runs when collider leaves trigger bounds ///////////////////////////////////////////////////////////////// private void OnTriggerExit(Collider other) { // Set obstacle to null if collider is obstacle if (other.gameObject == obstacle) { obstacle = null; playerScript.ResetActions(); } }