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