コード例 #1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.tag == "Player")
     {
         if (!jumperTemporalCoagulate)
         {
             playerData.AddToInventoy(1);
             FindObjectOfType <SFXPlayer>().PlayPickupSound();
         }
         if (jumperTemporalCoagulate)
         {
             playerController.jumpVelocity = 22f;
             playerData.invincible         = true;
             icons.EnableBunnyIcon();
             playerData.HandleHealthUI();
         }
         this.gameObject.SetActive(false);
     }
 }