protected override void OnClick() { if (Hardware == null) { Hardware hw = HardwareManager.GetRandomHardware(Vital); SetHardware(hw); InitVitalWeaponInfo(); } }
/// <summary> /// Initializes the object. /// </summary> private void Start() { _camera = FindObjectOfType <CameraController>(); _hwManager = FindObjectOfType <HardwareManager>(); InitHardwareBases(); InitWindows(); if (StartingRoom) { Open = true; Enter(); VitalHardwareBase.SetHardware(_hwManager.GetRandomHardware(true)); VitalHardwareBase.InitVitalWeaponInfo(); } }
public void HandleHardwareDestruction(Hardware hardware) { HardwareManager.HandleHardwareDestruction(hardware, this); SetHardware(null); }