private void OnBallHeld(PlayerEvents.BallHeldEvent e) { // for now, remove these id checks. it makes for more tense gameplay when no players can move while someone is charging a shot //if (e.PlayerID == PlayerManager.Instance.GetPlayerID(this.gameObject)) //{ _canMove = false; //} }
private void OnBallHeld(PlayerEvents.BallHeldEvent e) { _rigidbody.velocity = Vector2.zero; if (_inAir) { SetIsKinematic(true); } }
private void OnBallHeld(PlayerEvents.BallHeldEvent e) { transform.position = e.CurrentPosition; }