Network Weapons

+ started weapons with Mirror
This commit is contained in:
Noah4ever
2021-11-05 13:58:29 +01:00
parent 0e780162db
commit 89db851a1e
12 changed files with 454 additions and 61 deletions

View File

@@ -26,6 +26,8 @@ public class WeaponManager : MonoBehaviour
{ currentWeaponIndex = 0; }
else { currentWeaponIndex++; }
}
if (Input.GetButton("Interact")) // e
{
if (Physics.Raycast(cam.transform.position, cam.transform.forward, out RaycastHit hit))