You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Drag the "Player Weapon" script on the player prefab into the "Weapon" variable for the "Player Shoot" script. The issue is because the weapon isn't set.
using UnityEngine;
using UnityEngine.Networking;
using System.Collections;
public class PlayerShoot : NetworkBehaviour
{
private const string PLAYER_TAG = "Player";
private PlayerWeapon weapon;
[SerializeField]
private Camera cam;
[SerializeField]
private LayerMask mask;
}
// error : Object reference not set to an instance of an object
The text was updated successfully, but these errors were encountered: