// Use this for initialization void Start() { player = GameObject.Find("Player"); mainCam = GameObject.Find("Main Camera").GetComponent<Camera>(); sound = GameObject.Find("lockSound").GetComponent<AudioSource>(); player_wep = player.GetComponent<P_weapon>(); }
// Use this for initialization void Start() { player = GameObject.Find("Player"); mainCam = GameObject.Find("Main Camera").GetComponent <Camera>(); sound = GameObject.Find("lockSound").GetComponent <AudioSource>(); player_wep = player.GetComponent <P_weapon>(); }