Пример #1
0
 public void SetupUIService(IGameUIService service)
 {
     if (gameUIService == null)
         gameUIService = service;
     if(gameService != null)
         gameService.SetupGameUIService(service);
 }
	void Start () {
        UIService = new GameUIService(uberOuter);

        //Init Light View
        if(lightView != null)
            lightView.Service = UIService;

        //Init Spawner View
        if (spawnerView != null)
        {
            spawnerView.Service = UIService;
            UIService.SpawnerView = spawnerView;
            spawnerView.DelayedStart();
        }

        //Init Game View
        if(gameView != null)
        {
            gameView.SetupUIService(UIService);
        }

        LoadBossSprites();
        UpdateMonthView();
	}
 public void SetupGameUIService(IGameUIService service)
 {
     if (gameUIService == null)
         gameUIService = service;
 }