示例#1
0
 public void ChangeWeapon(IRangeWeaponBase weapon, int newAmmo = -1)
 {
     if (newAmmo > 0)
     {
         ammuniton = newAmmo;
     }
     currentWeapon = weapon;
 }
示例#2
0
 public void ChangeWeapon_EVENT(object sender, OnWeponChangeArgs e)
 {
     currentWeapon = e.newWeapon;
     if (e.newAmmo > 0)
     {
         ammuniton = e.newAmmo;
     }
 }