Added new rifle , and holding space will keep firing

posted in: Weekly Progress | 0

Old rifle is replaced with new rifle and with pressing space bar button firing will be done continuously . :

 

 

 

 

if (Input.GetKey(KeyCode.Space))
{
FireWeapon();

}

// change weapon
if (Input.GetKeyDown(KeyCode.Alpha1))
{
LevelManager.Instance.WeaponController.EquipWeapon(“Rope”);
}
else if (Input.GetKeyDown(KeyCode.Alpha2))
{
LevelManager.Instance.WeaponController.EquipWeapon(“Shotgun”);
}
else if (Input.GetKeyDown(KeyCode.Alpha3))
{
LevelManager.Instance.WeaponController.EquipWeapon(“Rifle”);
}

 

New Rifle:

Leave a Reply