예제 #1
0
        void Update()
        {
            ControlsShowGizmos = controlsShowGizmos;
            Camera             = touchCamera;

            if (knownScreenSize != ScreenSize)
            {
                UpdateScreenSize();
            }
        }
예제 #2
0
        void OnEnable()
        {
            ControlsShowGizmos = controlsShowGizmos;
            Camera             = touchCamera;

            UpdateScreenSize();

            if (Application.isPlaying)
            {
                InputManager.OnSetup  += Setup;
                InputManager.OnUpdate += UpdateTouches;
            }
        }