// Update is called once per frame void Update() { switch (inputMode) { case InputMode.Locked: break; case InputMode.Drawing: drawController.DoUpdate(); break; case InputMode.Swiping: swipeController.DoUpdate(); break; } }