示例#1
0
        private bool hasPower()
        {
            CompPowerTrader power = base.parent.TryGetComp <CompPowerTrader>();

            if (power != null && power.PowerOn)
            {
                return(true);
            }
            Building_CustomTurretGun bc = this.parent as Building_CustomTurretGun;

            if (bc.IsStun)
            {
                return(false);
            }
            return(false);
        }
 public TurretTop_CustomSize(Building_CustomTurretGun ParentTurret)
 {
     parentTurret = ParentTurret;
 }