// Update is called once per frame protected override void Update() { base.Update(); if (GameProvider.IsGameOver) { return; } var dx = InputUtil.GetX(); var dy = InputUtil.GetY(); Move(dx, dy); CenterPlayer(); if (InputUtil.GetButton(0)) { TryAttack(); } else { if (IsHaijin) { CurrentBurst = null; } } if (InputUtil.GetButtonDown(1)) { TryCreateLink(); } if (CurrentPortal != null) { TryCaptureOrRecharge(CurrentPortal, Achievement); } }