private void Awake() { m_fabricatorManager = FindObjectOfType <FabricatorManager>(); if (m_fabricatorManager == null) { Debug.LogError("Unable to find fabricator manager! Can't create pigs on click"); } }
private void Awake() { m_moneyManager = FindObjectOfType <MoneyManager>(); m_housingManager = FindObjectOfType <HousingManager>(); m_distributionManager = FindObjectOfType <DistributionManager>(); m_researchManager = FindObjectOfType <ResearchManager>(); m_fabricatorManager = FindObjectOfType <FabricatorManager>(); m_saveManager = FindObjectOfType <SaveManager>(); m_saveManager.OnDataLoaded += OnDataLoaded; }
private void Awake() { m_distributionManager = FindObjectOfType <DistributionManager>(); m_moneyManager = FindObjectOfType <MoneyManager>(); m_housingManager = FindObjectOfType <HousingManager>(); m_fabricatorManager = FindObjectOfType <FabricatorManager>(); m_researchManager = FindObjectOfType <ResearchManager>(); m_mainFilePath = Path.Combine(Application.persistentDataPath, FILE_NAME); m_vehiclesSavePath = Path.Combine(Application.persistentDataPath, VEHICLES_FILE_NAME); m_housesSavePath = Path.Combine(Application.persistentDataPath, HOUSES_FILE_NAME); m_researchSavePath = Path.Combine(Application.persistentDataPath, RESEARCH_FILE_NAME); }
private void Awake() { m_fabricatorManager = FindObjectOfType <FabricatorManager>(); }