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; }
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); } }