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

            // get medBay component from this game object
            medbay = shipManager.medbay.GetComponent <Medbay>();


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

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

            // this pawn is selectable and can be controlled
            isSelectable = true;

            onPeriodicCheck     += CheckRoomStatus;
            onEnterRoomCallback += CheckRoomStatus;
            // onLeftRoomCallback +=

            // get infirmary's component
            medbay = ship.GetComponent <Medbay>();
        }