Exemplo n.º 1
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;
        }
Exemplo n.º 2
0
        public override void Start()
        {
            base.Start();

            isMachine = true;

            // periodic check
            //onPeriodicCheck += CheckIfInsideRoboticsRoom;
            // on job finished
            onJobFinished += BackToRoboticsRoom;

            // this pawn is unselectable and can NOT be controlled
            isSelectable = false;

            // get robotics
            robotics = ship.robotics.GetComponent <Robotics>();

            // go to robotics room
            BackToRoboticsRoom();
        }