// TouchManagerSetup
        public void TouchManagerSetup()
        {
            Instance = this;

            controllers = gameObject.GetComponentsInChildren<ControllerBase>();
            controllersCount = controllers.Length;

            for( int cnt = 0; cnt < controllersCount; cnt++ )
                controllers[ cnt ].ControlAwake();

            InputManager.InputRegister( gameObject );
        }
示例#2
0
        // TouchManagerSetup
        public void TouchManagerSetup()
        {
            Instance = this;

            controllers      = gameObject.GetComponentsInChildren <ControllerBase>();
            controllersCount = controllers.Length;

            for (int cnt = 0; cnt < controllersCount; cnt++)
            {
                controllers[cnt].ControlAwake();
            }

            InputManager.InputRegister(gameObject);
        }