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; }
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>(); }