protected override void OnEnable()
 {
     base.OnEnable();
     if (Started && Highlighted)
     {
         OnHover(KiltUICamera.IsHighlighted(gameObject));
     }
 }
 protected override void OnPress(bool isPressed)
 {
     if (enabled && !CameraFade.InstanceExists())
     {
         if (!Started)
         {
             Start();
         }
         InitTween(tweenTarget, duration, isPressed ? pressed : (KiltUICamera.IsHighlighted(gameObject) ? hover : mColor));
     }
 }
示例#3
0
 protected virtual void OnEnable()
 {
     StartAlarmTriggers();
     if (Started && Highlighted)
     {
         OnHover(KiltUICamera.IsHighlighted(gameObject));
     }
     if (UnityTrigger.ContainsFlag(UnityTriggerEnum.OnEnable) || Trigger == ButtonTrigger.OnEnable)
     {
         CallSend();
     }
 }
示例#4
0
 protected override void OnPress(bool isPressed)
 {
     if (enabled && !CameraFade.InstanceExists())
     {
         if (!Started)
         {
             Start();
         }
         InitTween(tweenTarget.gameObject, duration, isPressed ? Vector3.Scale(_scale, pressed) :
                   (KiltUICamera.IsHighlighted(gameObject) ? Vector3.Scale(_scale, hover) : _scale));
     }
 }