// Update is called once per frame void Update() { KeyCode key = KeyDetecion.KeysDown().Any() ? KeyDetecion.KeysDown().First() : KeyCode.AltGr; if (movecircle == null) { Awake(); } this.movecircle.MoveCircle(key, speed, Time.deltaTime, targetCircleObject); }
// Update is called once per frame void Update() { KeyCode key = KeyDetecion.KeysDown().Any() ? KeyDetecion.KeysDown().First() : KeyCode.AltGr; moveGate(topGate, key, Time.fixedDeltaTime); }