Exemplo n.º 1
0
 public CanvasClickHandlerSystem(Contexts contexts, LootboxSceneSwitcher lootboxLobbyLoaderController,
                                 UiSoundsManager uiSoundsManager, LootboxUiStorage lootboxUiStorage)
     : base(contexts.lootbox)
 {
     currentPrizeIndex                 = -1;
     lootboxContext                    = contexts.lootbox;
     this.uiSoundsManager              = uiSoundsManager;
     this.lootboxUiStorage             = lootboxUiStorage;
     this.lootboxLobbyLoaderController = lootboxLobbyLoaderController;
 }
Exemplo n.º 2
0
    public Contexts()
    {
        game       = new GameContext();
        input      = new InputContext();
        lobbyUi    = new LobbyUiContext();
        lootbox    = new LootboxContext();
        wppAccrual = new WppAccrualContext();

        var postConstructors = System.Linq.Enumerable.Where(
            GetType().GetMethods(),
            method => System.Attribute.IsDefined(method, typeof(Entitas.CodeGeneration.Attributes.PostConstructorAttribute))
            );

        foreach (var postConstructor in postConstructors)
        {
            postConstructor.Invoke(this, null);
        }
    }