private void AddPlayerGunTypeInAchivedList(GameEnum.GunType gunType) { if (_playerAChivedData == null) { return; } if (_playerAChivedData.gunsList == null) { _playerAChivedData.gunsList = new List <GameEnum.GunType>(); } _playerAChivedData.gunsList.Add(gunType); }
public bool IsGunTypeExistInAchievedGunList(GameEnum.GunType gunType) { if (GetAchivedGunList() == null) { return(false); } for (int i = 0; i < GetAchivedGunList().Count; i++) { if (GetAchivedGunList()[i] == gunType) { return(true); } } return(false); }
public void SetGunType(GameEnum.GunType gunType) { _gunType = gunType; }
public void SetPlayerAchivedData(GameEnum.PlayerShipType shipType, GameEnum.GunType gunType) { AddPlayerShipTypeInAchievedList(shipType); AddPlayerGunTypeInAchivedList(gunType); }