Exemplo n.º 1
0
        /*******************************************/
        /*              Self-Define                */
        /*******************************************/
        //----------------------
        // Public Functions

        //----------------------
        // Protected Functions

        //----------------------
        // Private Functions

        /// <summary>
        /// Callback if the button get focus.
        /// </summary>
        private void PointToButton(JCS_Button btn)
        {
            if (mDontPointIfButtonNotActive)
            {
                if (!btn.Interactable)
                {
                    return;
                }
            }

            mSimpleTrackAction.TargetPosition = btn.GetRectTransfom().localPosition + mPointerOffset;
        }
        /// <summary>
        /// Callback if the button get focus.
        /// </summary>
        private void PointToButton(JCS_Button btn)
        {
            if (mDontPointIfButtonNotActive)
            {
                if (!btn.Interactable)
                {
                    return;
                }
            }

            Vector3 targetPoint =
                btn.GetRectTransfom().localPosition + // Target position.
                mPointerOffset;                       // Offset value.

            mSimpleTrackAction.TargetPosition = targetPoint;
        }