Beispiel #1
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     if (other.gameObject.name.Equals("Ring 1"))
     {
         other.gameObject.SetActive(false);
         tutorialController.SetComplete(1);
     }
     else if (other.gameObject.name.Equals("Ring 2"))
     {
         other.gameObject.SetActive(false);
         tutorialController.SetComplete(2);
         tutorialController.LearnJump();
     }
     else if (other.gameObject.name.Equals("Ring 3"))
     {
         other.gameObject.SetActive(false);
         tutorialController.SetComplete(3);
         tutorialController.LearnAttack();
     }
 }