public Weapon currentWeapon; // weapon the player is currently holding // Start is called before the first frame update void Start() { // pistol is open by default defaultPistol.ActivateWeapon(true); // activates the pistol firstWeapon.ActivateWeapon(false); // 1st slot disabled secondWeapon.ActivateWeapon(false); // 2nd slot disabled currentWeapon = defaultPistol; // player has pistol in hand by default // setting this file to the manager for all the weapon slots defaultPistol.manager = this; firstWeapon.manager = this; secondWeapon.manager = this; }
void Start() { weapon.ActivateWeapon(CurrentTeam); InitHeath(CurrentTeam); StartCoroutine(EnemyController()); }