Beispiel #1
0
    // This function is called when the BallCarrier initially gains possession
    // of the ball
    public void StartCarryingBall()
    {
        DoBlowbackEffect();
        timeCarryStarted = Time.time;

        // TODO dkonik: Make the laser guide event based
        laserGuide?.DrawLaser();
        carryBallCoroutine = StartCoroutine(CarryBall());
    }
Beispiel #2
0
 // This function is called when the BallCarrier initially gains possession
 // of the ball
 public void StartCarryingBall(Ball ball)
 {
     BlowBackEnemyPlayers();
     timeCarryStarted               = Time.time;
     ball.rigidbody.velocity        = Vector2.zero;
     ball.rigidbody.angularVelocity = 0;
     CalculateOffset(ball);
     if (slowMoOnCarry)
     {
         GameManager.instance.SlowMo();
     }
     laserGuide?.DrawLaser();
     carryBallCoroutine = StartCoroutine(CarryBall(ball));
 }