예제 #1
0
 /** 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);
     }
 }
예제 #2
0
 protected virtual void OnSwitchToggle(LimitSwitchToggle Event)
 {
     SwitchToggle?.Invoke(this, Event);
 }