public void OnTriggerEnter(Collider coll)
 {
     if (coll.tag == PLAYER_TAG)
     {
         EndlessRunnerPlayerController pCtrl = coll.GetComponent <EndlessRunnerPlayerController>();
         pCtrl.SetTrackSegment(this);
     }
 }
Exemplo n.º 2
0
 public void OnTriggerEnter(Collider coll)
 {
     if (coll.tag == PLAYER_TAG)
     {
         EndlessRunnerPlayerController pCtrl = coll.GetComponent <EndlessRunnerPlayerController>();
         OnPlayerCollided(pCtrl);
     }
 }
Exemplo n.º 3
0
 protected abstract void OnPlayerCollided(EndlessRunnerPlayerController player);
 protected override void OnPlayerCollided(EndlessRunnerPlayerController player)
 {
     Debug.Log("Crashed");
 }