Beispiel #1
0
    private void OnColideWithFinishPoint(FinishPoint finishPoint)
    {
        if (finishPoint.TeamId != teamId)
        {
            return;
        }

        mover.StartMoveTo(finishPoint.transform.position);
        animations.PlayJumpAnimation();

        Events.unitReachFinishPointEvent?.Invoke();
    }