protected virtual void OnDoubleClick() { if (enabled && !CameraFade.InstanceExists()) { if (KiltCamTrigger.ContainsFlag(KiltCamTriggerEnum.OnDoubleClick) || Trigger == ButtonTrigger.OnDoubleClick) { CheckSend(); } } }
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; } }
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(); } } }