Exemplo n.º 1
0
 public void EraseSuitsData()
 {
     this.assignedSuit = null;
     this.OgsOld_CompTurretGunFirst  = null;
     this.OgsOld_CompTurretGunSecond = null;
     this.compReloadableDual         = null;
 }
Exemplo n.º 2
0
        public void InitSuitsData(MechSuit suit)
        {
            this.assignedSuit = suit;
            var turrets = assignedSuit.AllComps.Where(x => x is OgsOld_CompTurretGun);

            if (turrets.Count() > 0)
            {
                this.OgsOld_CompTurretGunFirst = turrets.ElementAt(0) as OgsOld_CompTurretGunDamagable;
            }
            if (turrets.Count() > 1)
            {
                this.OgsOld_CompTurretGunSecond = turrets.ElementAt(1) as OgsOld_CompTurretGunDamagable;
            }
            this.compReloadableDual = assignedSuit.GetComp <CompReloadableDual>();
        }