コード例 #1
0
 // hat goes flying off and seeks shanty
 public void LoseHat()
 {
     if (!lostHat)
     {
         // play whoops sound
         Hat.gameObject.SetActive(true);
         Hat.Fly();
         lostHat = true;
         this.MySprite.enabled = false;
         OwnedSprite.gameObject.SetActive(true);
     }
 }