示例#1
0
 void OnCollisionEnter2D(Collision2D col)
 {
     if (col.gameObject.tag == "Player")
     {
         item.Succes();
         gameObject.SetActive(false);
         manager.Shopping();
     }
 }
示例#2
0
 void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.tag == "Player" && (sceneIndex == 1 || sceneIndex == 4 || sceneIndex == 10))
     {
         item.Succes();
         gameObject.SetActive(false);
         manager.Shopping();
     }
     if (collision.tag == "Player" && (sceneIndex == 7))
     {
         gameObject.SetActive(false);
         itemf.Fly();
     }
 }
示例#3
0
 public void SetFood()
 {
     ruoka = true;
     food.Succes();
 }
示例#4
0
 public void SetShower()
 {
     suihku = true;
     shower.Succes();
 }