protected override void Start() { base.Start(); shipResources = ShipResourceManager.Instance; SystemFixed += OnFixed; SystemBreakDown += OnBroken; }
protected override void Start() { base.Start(); shipResources = ShipResourceManager.Instance; SystemFixed += OnFixed; SystemBreakDown += OnBroken; FixedModel.SetActive(true); BrokenModel.SetActive(false); }
void Start() { systems = GetComponents <ShipSystem>(); numSystems = systems.Length; availablePowerSystems = systems.Where(s => s.PowerType == ShipSystem.SystemPowerType.Consumer).ToList(); numConsumerSystems = availablePowerSystems.Count(); numProducerSystems = numSystems - numConsumerSystems; shipResources = ShipResourceManager.Instance; unavailablePowerSystems = new List <ShipSystem>(); }
void Start() { timeManager = TimeManager.Instance; shipResources = ShipResourceManager.Instance; playerController = PlayerController.Instance; gameController = GameController.Instance; Health = InitialHealth; Hunger = InitialHunger; Thirst = InitialThirst; Radiation = InitialRadiation; Energy = InitialEnergy; }
void Start() { darkOverlayEnabled = false; cameraTransform = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren <Camera>().transform; playerResources = PlayerResourceManager.Instance; shipResources = ShipResourceManager.Instance; systemManager = ShipSystemManager.Instance; EventBox.SetActive(false); }
protected override void Start() { base.Start(); SystemFixed += OnFixed; SystemBreakDown += OnBroken; shipResources = ShipResourceManager.Instance; playerController = PlayerController.Instance; uiManager = UIManager.Instance; FixedModel.SetActive(true); BrokenModel.SetActive(false); foodLevel = MaxFoodLevel; }
protected override void Start() { base.Start(); SystemFixed += OnFixed; SystemBreakDown += OnBroken; shipResources = ShipResourceManager.Instance; playerController = PlayerController.Instance; uiManager = UIManager.Instance; WaterLevel = MaxWaterLevel; FixedModel.SetActive(true); BrokenModel.SetActive(false); WaterStream.SetActive(false); CupWater.transform.localScale = Vector3.zero; }
protected override void Start() { base.Start(); mapManager = MapManager.Instance; pathfinding = Pathfinding.Instance; shipResources = ShipResourceManager.Instance; mapManager.OnMapChange += MapChanged; mapManager.OnTileChange += TileChanged; OnRobotMoved += RobotMoved; SystemBreakDown += OnBroken; SystemFixed += OnFixed; SystemPowerAvailable += OnPowerAvailable; SystemPowerUnavailable += OnPowerUnavailable; State = RobotState.Idle; RobotX = mapManager.EntranceX; RobotY = mapManager.EntranceY; displayTileWidth = MapDisplay.rect.width / mapManager.MapWidth; displayTileHeight = MapDisplay.rect.height / mapManager.MapHeight; tileGameObjectMap = new Dictionary <Tile, GameObject>(); if (OnRobotMoved != null) { OnRobotMoved(RobotX, RobotY); } BaseSpeedText.text = TileSizeInMetres / (RobotTileTraverseTime / 60) + " m/hour"; DistanceText.text = "-"; TimeText.text = "-"; InventoryText.text = "Empty"; BrokenCover.SetActive(false); NoPowerCover.SetActive(false); DrawMap(); RobotMoved(RobotX, RobotY); }
void Start() { shipResources = ShipResourceManager.Instance; }
void Awake() { Instance = this; }
void Start() { shipResources = ShipResourceManager.Instance; systemManager = ShipSystemManager.Instance; }