Exemplo n.º 1
0
 void Start()
 {
     controller = GetComponent<CharacterController>();
     wepGUI = GameObject.FindObjectOfType<WeaponGUI>();
     currentGun = guns[0];
     EquipGun(0);
 }
Exemplo n.º 2
0
 void Start()
 {
     controller = GetComponent <CharacterController>();
     wepGUI     = GameObject.FindObjectOfType <WeaponGUI>();
     currentGun = guns[0];
     EquipGun(0);
 }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     if (curWeapon == null) {
         curWeapon = GetComponent<weaponScript>();
     }
     if (showCurrentWeapon == null) {
         showCurrentWeapon = GetComponent<WeaponGUI>();
     }
 }