示例#1
0
 private void Awake()
 {
     m_fabricatorManager = FindObjectOfType <FabricatorManager>();
     if (m_fabricatorManager == null)
     {
         Debug.LogError("Unable to find fabricator manager! Can't create pigs on click");
     }
 }
示例#2
0
    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;
    }
示例#3
0
    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);
    }
示例#4
0
 private void Awake()
 {
     m_fabricatorManager = FindObjectOfType <FabricatorManager>();
 }