Пример #1
0
        /* Functions */

        private void Awake()
        {
            /* Down compatible. */
            this.mSpriteRenderer = this.GetComponent <SpriteRenderer>();

            // clean up empty slot.
            mSpriteRenderers = JCS_Utility.RemoveEmptySlot <SpriteRenderer>(mSpriteRenderers);
        }
Пример #2
0
        /*******************************************/
        /*           Private Variables             */
        /*******************************************/

        /*******************************************/
        /*           Protected Variables           */
        /*******************************************/

        /*******************************************/
        /*             setter / getter             */
        /*******************************************/

        /*******************************************/
        /*            Unity's function             */
        /*******************************************/
        private void Start()
        {
            this.animationSets = JCS_Utility.RemoveEmptySlot(this.animationSets);

            /* Register callback */
            {
                JCS_Input.joystickPluggedCallback   += JoystickPluggedCallback;
                JCS_Input.joystickUnPluggedCallback += JoystickUnPluggedCallback;
            }

            JCS_Input.InputCallbackOnce();
        }
Пример #3
0
        /* Functions */

        private void Awake()
        {
            this.mSelections = JCS_Utility.RemoveEmptySlot(mSelections);

            // let them know the grouper.
            foreach (JCS_ButtonSelection bs in mSelections)
            {
                bs.ButtonSelectionGroup = this;
            }

            selectionChanged = EmptyCallbackSelectionChanged;
        }