Example #1
0
 private void AddPlayerGunTypeInAchivedList(GameEnum.GunType gunType)
 {
     if (_playerAChivedData == null)
     {
         return;
     }
     if (_playerAChivedData.gunsList == null)
     {
         _playerAChivedData.gunsList = new List <GameEnum.GunType>();
     }
     _playerAChivedData.gunsList.Add(gunType);
 }
Example #2
0
 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);
 }
Example #3
0
 public void SetGunType(GameEnum.GunType gunType)
 {
     _gunType = gunType;
 }
Example #4
0
 public void SetPlayerAchivedData(GameEnum.PlayerShipType shipType, GameEnum.GunType gunType)
 {
     AddPlayerShipTypeInAchievedList(shipType);
     AddPlayerGunTypeInAchivedList(gunType);
 }