Ejemplo n.º 1
0
 private void Start()
 {
     _handler                = GetComponent <KartCollisionHandler>();
     _respawnable            = GetComponent <KartRespawnable>();
     _handler.OnLapFinished += HandleLapFinished;
     _respawnable.OnDeath   += HandleDeath;
 }
Ejemplo n.º 2
0
 private void Start()
 {
     _rb            = GetComponent <Rigidbody>();
     _raycaster     = GetComponent <KartAgentRaycaster>();
     _respawnable   = GetComponent <KartRespawnable>();
     _handler       = GetComponent <KartCollisionHandler>();
     _kartNitro     = GetComponent <KartNitro>();
     _lapCompletion = GetComponent <KartLapCompletion>();
     _agentSettings = Registry.ProjectSettings.agentSettings;
     _lapCompletion.OnLapCompleted += HandleLapCompletion;
     _handler.OnRewardCollision    += HandleRewardCollision;
     _respawnable.OnDeath          += HandleDeath;
 }