Beispiel #1
0
        public override void Start()
        {
            base.Start();

            // set room maxHP based on shield power consumption
            //shield = shipManager.shield.GetComponent<Shield>();
            shield = SystemGO.GetComponent <Shield>();

            currentHP = maxHP;
        }
Beispiel #2
0
        public override void Start()
        {
            base.Start();

            // set room maxHP based on oxygen systems power consumption
            //oxygen = shipManager.oxygen.GetComponent<Oxygen>();
            oxygen = SystemGO.GetComponent <Oxygen>();
            maxHP += oxygen.powerConsumption;

            currentHP = maxHP;
        }
Beispiel #3
0
        public override void Start()
        {
            base.Start();

            // set room maxHP based on shield power consumption
            //cloaking = shipManager.cloaking.GetComponent<Cloaking>();
            cloaking = SystemGO.GetComponent <Cloaking>();
            maxHP   += cloaking.powerConsumption;

            currentHP = maxHP;
        }
Beispiel #4
0
        public override void Start()
        {
            base.Start();

            // set room maxHP based on shield power consumption
            //command = shipManager.command.GetComponent<Command>();
            command = SystemGO.GetComponent <Command>();
            maxHP  += command.powerConsumption;

            currentHP = maxHP;
        }
Beispiel #5
0
        public override void Start()
        {
            base.Start();

            // set room maxHP based on engine power consumption
            //engine = shipManager.engine.GetComponent<Engine>();
            engine = SystemGO.GetComponent <Engine>();
            maxHP += engine.powerConsumption;

            currentHP = maxHP;
        }
Beispiel #6
0
        public override void Start()
        {
            base.Start();

            // get robotics component from this game object
            //robotics = shipManager.robotics.GetComponent<Robotics>();
            robotics = SystemGO.GetComponent <Robotics>();


            // set room maxHP based on robotics power consumption
            maxHP += robotics.powerConsumption;

            currentHP = maxHP;
        }