/// <summary> /// Handler for destroy event. /// </summary> void OnDestroy() { DebugEx.Verbose("TooltipAreaScript.OnDestroy()"); if (sInstance == this) { sInstance = null; } }
/// <summary> /// Script starting callback. /// </summary> void Start() { DebugEx.Verbose("TooltipAreaScript.Start()"); if (sInstance == null) { sInstance = this; } else { DebugEx.Error("Two instances of TooltipAreaScript not supported"); } mCurrentOwner = null; mNextOwner = null; mTimer = new Timer(); }
/// <summary> /// Script starting callback. /// </summary> void Start() { if (instance == null) { instance = this; } else { Debug.LogError("Two instances of TooltipAreaScript not supported"); } mCurrentOwner = null; mNextOwner = null; mRemainingTime = TIMER_NOT_ACTIVE; mOnTimeout = null; }
/// <summary> /// Handler for destroy event. /// </summary> void OnDestroy() { if (instance == this) { instance = null; } }
/// <summary> /// Handler for pointer exit event. /// </summary> /// <param name="eventData">Pointer data.</param> public void OnPointerExit(PointerEventData eventData) { DebugEx.VerboseFormat("TooltipOwnerScript.OnPointerExit(eventData = {0})", eventData); TooltipAreaScript.OnTooltipOwnerExit(this); }
/// <summary> /// Handler for disable event. /// </summary> void OnDisable() { DebugEx.Verbose("TooltipOwnerScript.OnDisable()"); TooltipAreaScript.OnTooltipOwnerDisable(this); }
/// <summary> /// Handler for destroy event. /// </summary> void OnDestroy() { DebugEx.Verbose("TooltipOwnerScript.OnDestroy()"); TooltipAreaScript.OnTooltipOwnerDestroy(this); }