コード例 #1
0
        /// <summary>
        /// Handler for destroy event.
        /// </summary>
        void OnDestroy()
        {
            DebugEx.Verbose("TooltipAreaScript.OnDestroy()");

            if (sInstance == this)
            {
                sInstance = null;
            }
        }
コード例 #2
0
        /// <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();
        }
コード例 #3
0
        /// <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;
        }
コード例 #4
0
 /// <summary>
 /// Handler for destroy event.
 /// </summary>
 void OnDestroy()
 {
     if (instance == this)
     {
         instance = null;
     }
 }
コード例 #5
0
        /// <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);
        }
コード例 #6
0
        /// <summary>
        /// Handler for disable event.
        /// </summary>
        void OnDisable()
        {
            DebugEx.Verbose("TooltipOwnerScript.OnDisable()");

            TooltipAreaScript.OnTooltipOwnerDisable(this);
        }
コード例 #7
0
        /// <summary>
        /// Handler for destroy event.
        /// </summary>
        void OnDestroy()
        {
            DebugEx.Verbose("TooltipOwnerScript.OnDestroy()");

            TooltipAreaScript.OnTooltipOwnerDestroy(this);
        }