示例#1
0
 protected virtual void OnDoubleClick()
 {
     if (enabled && !CameraFade.InstanceExists())
     {
         if (KiltCamTrigger.ContainsFlag(KiltCamTriggerEnum.OnDoubleClick) || Trigger == ButtonTrigger.OnDoubleClick)
         {
             CheckSend();
         }
     }
 }
示例#2
0
 protected virtual void OnHover(bool isOver)
 {
     if (enabled && !CameraFade.InstanceExists())
     {
         if (((isOver && (KiltCamTrigger.ContainsFlag(KiltCamTriggerEnum.OnMouseOver) || Trigger == ButtonTrigger.OnMouseOver)) ||
              (!isOver && (KiltCamTrigger.ContainsFlag(KiltCamTriggerEnum.OnMouseOut) || Trigger == ButtonTrigger.OnMouseOut))))
         {
             CheckSend();
         }
         Highlighted = isOver;
     }
 }
示例#3
0
 protected virtual void OnPress(bool isPressed)
 {
     if (enabled && !CameraFade.InstanceExists())
     {
         UpdateOldPos();
         UpdateKinematicOnPress(isPressed);
         if (((isPressed && (KiltCamTrigger.ContainsFlag(KiltCamTriggerEnum.OnPress) || Trigger == ButtonTrigger.OnPress)) ||
              (!isPressed && (KiltCamTrigger.ContainsFlag(KiltCamTriggerEnum.OnRelease) || Trigger == ButtonTrigger.OnRelease))))
         {
             CheckSend();
         }
     }
 }