예제 #1
0
 void OnTriggerEnter2D(Collider2D other)           // on collision getting the game object to detect the player TAg then add points depending on ScoreGive   " IMPORTANT TO WRITE EACH word CORRECTly or Unity wont understand  "OnTriggerEnter2D"
 {
     if (other.gameObject.tag == "Player")
     {
         JumpPicked = true;
         PwUpManager.ActivateJumpDash(JumpPicked, jumppower);
         gameObject.SetActive(false);
     }
 }