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