/** Puts the pressure plate in a released state when the SwapCube exits the top area. * * @param other */ private void OnTriggerExit(Collider other) { ReliableOnTriggerExit.NotifyTriggerExit(other, gameObject); if (other.tag == "SwapCube") { animator.SetBool("isPressed", false); SwitchToggle.Invoke(false); } }
protected virtual void OnSwitchToggle(LimitSwitchToggle Event) { SwitchToggle?.Invoke(this, Event); }