Example #1
0
    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;
        //}
    }
Example #2
0
    private void OnBallHeld(PlayerEvents.BallHeldEvent e)
    {
        _rigidbody.velocity = Vector2.zero;

        if (_inAir)
        {
            SetIsKinematic(true);
        }
    }
Example #3
0
 private void OnBallHeld(PlayerEvents.BallHeldEvent e)
 {
     transform.position = e.CurrentPosition;
 }