void Start()
    {
        Screens = new Dictionary <ScreenMode, GameObject>
        {
            [ScreenMode.DevelopmentScreen]       = TechnologyScreen,
            [ScreenMode.ProjectScreen]           = ProjectScreen,
            [ScreenMode.InvesmentsScreen]        = InvesmentsScreen,
            [ScreenMode.InvesmentProposalScreen] = InvesmentProposalScreen,
            [ScreenMode.IndustryScreen]          = IndustryScreen,
            [ScreenMode.NicheScreen]             = NicheScreen,
            [ScreenMode.CharacterScreen]         = CharacterScreen,
            [ScreenMode.GroupManagementScreen]   = GroupManagementScreen,
            [ScreenMode.TeamScreen]                       = TeamScreen,
            [ScreenMode.MarketingScreen]                  = MarketingScreen,
            [ScreenMode.InvestmentOfferScreen]            = InvestmentOfferScreen,
            [ScreenMode.JobOfferScreen]                   = JobOfferScreen,
            [ScreenMode.CompanyGoalScreen]                = CompanyGoalScreen,
            [ScreenMode.EmployeeScreen]                   = EmployeeScreen,
            [ScreenMode.ManageCompaniesScreen]            = ManageCompaniesScreen,
            [ScreenMode.BuySharesScreen]                  = BuySharesScreen,
            [ScreenMode.CompanyEconomyScreen]             = CompanyEconomyScreen,
            [ScreenMode.MarketExplorationScreen]          = MarketExplorationScreen,
            [ScreenMode.CompanyExplorationScreen]         = CompanyExplorationScreen,
            [ScreenMode.LeaderboardScreen]                = LeaderboardScreen,
            [ScreenMode.ExplorationScreen]                = ExplorationScreen,
            [ScreenMode.NicheInfoScreen]                  = NicheInfoScreen,
            [ScreenMode.AcquisitionScreen]                = AcquisitionScreen,
            [ScreenMode.SalesScreen]                      = SalesScreen,
            [ScreenMode.PotentialCompaniesScreen]         = PotentialCompaniesScreen,
            [ScreenMode.AnnualReportScreen]               = AnnualReportScreen,
            [ScreenMode.StartCampaignScreen]              = StartCampaignScreen,
            [ScreenMode.GroupScreen]                      = GroupScreen,
            [ScreenMode.HoldingScreen]                    = HoldingScreen,
            [ScreenMode.CorporationScreen]                = CorporationScreen,
            [ScreenMode.AcquirableCompaniesOnNicheScreen] = AcquirableCompaniesOnNicheScreen,
            [ScreenMode.JoinCorporationScreen]            = JoinCorporationScreen,
            [ScreenMode.FormStrategicPartnershipScreen]   = FormStrategicPartnershipScreen,
            [ScreenMode.TrendsScreen]                     = TrendsScreen,
        };

        DisableAllScreens();

        EnableScreen(ScreenMode.NicheScreen);

        GameEntity e = ScreenUtils.GetMenu(Contexts.sharedInstance.game);

        e.AddMenuListener(this);
    }
Exemple #2
0
 public void ListenMenuChanges(IMenuListener menuListener)
 {
     ScreenUtils.GetMenu(Q).AddMenuListener(menuListener);
 }
Exemple #3
0
    public void SetObservableCompany()
    {
        var screenMode = ScreenUtils.GetMenu(Q).menu.ScreenMode;

        ObservableCompany = screenMode == ScreenMode.GroupManagementScreen ? MyGroupEntity : SelectedCompany;
    }
Exemple #4
0
 public void UnListenMenuChanges(IMenuListener menuListener)
 {
     ScreenUtils.GetMenu(Q).RemoveMenuListener(menuListener);
 }
Exemple #5
0
 public GameEntity AnyChangeListener()
 {
     return(ScreenUtils.GetMenu(Q));
 }
Exemple #6
0
 public void UnListenNavigationChanges(INavigationHistoryListener listener)
 {
     ScreenUtils.GetMenu(Q).RemoveNavigationHistoryListener(listener);
 }
Exemple #7
0
 void IInitializeSystem.Initialize()
 {
     var c = ScreenUtils.GetMenu(context);
 }
 void Start()
 {
     menu = ScreenUtils.GetMenu(Q);
 }