コード例 #1
0
 public void OnResearchLearned()
 {
     if (_manuModel.GetMainController().GetResearchController().IsResearchLearned(AllResearches.Rockets))
     {
         Debug.Log("Manufacture Rockets prefab ");
         GenerateProducts();
     }
     if (_manuModel.GetMainController().GetResearchController().IsResearchLearned(AllResearches.Fuel))
     {
         Debug.Log("Manufacture Fuel prefab");
         GenerateProducts();
     }
 }
コード例 #2
0
    public void OnResearchLearned()
    {
        Debug.Log("OnResearchLearned called");

        if (_manuModel.GetMainController().GetManuController().IsResearchLearned(AllManufacture.Ammo))
        {
            Debug.Log("Manufacture ammo prefab ");
            _manuModel.GetManuPanelController().GenerateProducts();
        }
        if (_manuModel.GetMainController().GetManuController().IsResearchLearned(AllManufacture.Fuel))
        {
            Debug.Log("Manufacture Fuel prefab");
            _manuModel.GetManuPanelController().GenerateProducts();
        }
    }