mirror of
https://github.com/DerTyp7/defrain-shooter-unity.git
synced 2025-10-29 20:52:10 +01:00
Weapon Switching
+ started weapon switching + added only get active weapon (if you have rifle and pistole and you drop rifle you cant scroll to rifle slot)
This commit is contained in:
@@ -47,11 +47,12 @@ public class Shoot : NetworkBehaviour
|
||||
if (Input.GetButtonDown("Fire")) {
|
||||
updateCanvas = true;
|
||||
Debug.Log(" click");
|
||||
CmdFireBullet();
|
||||
if (weapon.AllowAction)
|
||||
{
|
||||
shootAnim.Recoil(0.1f);
|
||||
}
|
||||
CmdFireBullet();
|
||||
|
||||
}
|
||||
if (Input.GetButtonDown("Reload")) {
|
||||
updateCanvas = true;
|
||||
|
||||
Reference in New Issue
Block a user