예제 #1
0
파일: Armor.cs 프로젝트: Jan5366x/ld45
 public void OnDrop()
 {
     if (dropArmor)
     {
         Instantiate(dropArmor,
                     LandHelper.ChooseLand(transform.position, new Rect(-1, -2, 2, 3)), transform.rotation);
     }
 }
예제 #2
0
 public override void OnDrop()
 {
     if (dropWeapon)
     {
         Instantiate(dropWeapon, LandHelper.ChooseLand(transform.position, new Rect(-1, -2, 2, 3)),
                     transform.rotation);
     }
 }