コード例 #1
0
 void SelectSpecificWeapon(int index)
 {
     gunInventory[selectedGun].gameObject.SetActive(false);
     selectedGun = index;
     gunHandler.TakeOutWeapon(TakenGunOut);
     gunInventory[selectedGun].gameObject.SetActive(true);
 }
コード例 #2
0
    public void TakeOutSelectedGun()
    {
        if (putAwayGun >= 0)
        {
            gunInventory[putAwayGun].gameObject.SetActive(false);
            putAwayGun = -1;
        }

        ui.UpdateGunUI(gunHandler);
        gunHandler.TakeOutWeapon(TakenGunOut);
        gunInventory[selectedGun].gameObject.SetActive(true);
        status = GunControlStatus.takingOut;
    }