void Update() { ControlsShowGizmos = controlsShowGizmos; Camera = touchCamera; if (knownScreenSize != ScreenSize) { UpdateScreenSize(); } }
void OnEnable() { ControlsShowGizmos = controlsShowGizmos; Camera = touchCamera; UpdateScreenSize(); if (Application.isPlaying) { InputManager.OnSetup += Setup; InputManager.OnUpdate += UpdateTouches; } }