Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     ammo        = GetComponent <Ammo>();
     gunEquipper = GetComponent <GunEquipper>();
 }
 void Start()
 {
     ammo        = GetComponentInChildren <Ammo>();
     gunEquipper = GetComponentInChildren <GunEquipper>();
 }
Beispiel #3
0
 // Start is called before the first frame update
 void Start()
 {
     //get ammo and gun equipper components
     ammo        = GetComponent <Ammo>();
     gunEquipper = GetComponent <GunEquipper>();
 }
Beispiel #4
0
 // Use this for initialization
 void Start()
 {
     gunEquipper = GetComponent <GunEquipper>();
     ammo        = GetComponent <Ammo>();
     source      = GetComponent <AudioSource>();
 }
Beispiel #5
0
 // Start is called before the first frame update
 void Start()
 {
     // This just gets the Ammo and GunEquipper component attached to the Player GameObject.
     ammo        = GetComponent <Ammo>();
     gunEquipper = GetComponent <GunEquipper>();
 }
Beispiel #6
0
 private void Start()
 {
     m_Ammo        = GetComponent <Ammo>();
     m_GunEquipper = GetComponent <GunEquipper>();
 }