Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     ammo        = GetComponent <Ammo>();
     gunEquipper = GetComponent <GunEquipper>();
 }
 void Start()
 {
     ammo        = GetComponentInChildren <Ammo>();
     gunEquipper = GetComponentInChildren <GunEquipper>();
 }
Exemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     //get ammo and gun equipper components
     ammo        = GetComponent <Ammo>();
     gunEquipper = GetComponent <GunEquipper>();
 }
Exemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     gunEquipper = GetComponent <GunEquipper>();
     ammo        = GetComponent <Ammo>();
     source      = GetComponent <AudioSource>();
 }
Exemplo n.º 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>();
 }
Exemplo n.º 6
0
 private void Start()
 {
     m_Ammo        = GetComponent <Ammo>();
     m_GunEquipper = GetComponent <GunEquipper>();
 }