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)); } }
protected virtual void OnEnable() { StartAlarmTriggers(); if (Started && Highlighted) { OnHover(KiltUICamera.IsHighlighted(gameObject)); } if (UnityTrigger.ContainsFlag(UnityTriggerEnum.OnEnable) || Trigger == ButtonTrigger.OnEnable) { CallSend(); } }
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)); } }