Exemple #1
0
 // 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>();
 }
Exemple #2
0
 // 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>();
 }