void Update() { if (movementChangeInput.CheckInput()) { MoveComponent.ShowMovements = !MoveComponent.ShowMovements; } }
private void LateUpdate() { SelectTransform(null); if (ClickInput.CheckInput()) { SelectTransform(_trasnformCollidedWith); } _trasnformCollidedWith = null; }
void Update() { if (pauseInput.CheckInput()) { if (paused) { unpause(); } else { pause(); } } }
private void Update() { if (_inputGiven) { return; } if (InputForCheat.CheckInput()) { _inputGiven = true; var player = FindObjectOfType <PlayerControlBattle>(); player.SearchComponent <MachineGun>().DamagePerSecond = 5000f; player.MoveComponent.BaseSpeed = 20f; player.MoveComponent.SetBaseSpeed(); Debug.Log("Cheat activated"); } }