Exemple #1
0
 void  OnTriggerEnter2D(Collider2D other)
 {
     if (other.tag == "Player")
     {
         scoreKeeper.AddToScore(Value);
         playerController.setPlayerState(FlapjackController.PlayerState.NORMAL);
         Destroy(gameObject);
     }
 }
Exemple #2
0
 void  OnTriggerEnter2D(Collider2D other)
 {
     if (other.tag == "Player")
     {
         scoreKeeper.setScoreMultiplier(Value);
         playerController.setPowerUpDuration(DurationInSecs);
         playerController.setPlayerState(FlapjackController.PlayerState.HAS_AXE);
         Destroy(gameObject);
     }
 }