/// <summary> /// Initializes the GameBlock (WARNING: May only be called by the BaseGameBlockSystem!) /// </summary> public void Initialize(BaseGameBlockSystem <T> gameBlockSystem, U gameBlockInfo) { if (_initialized) { return; } _initialized = true; this.gameBlockInfo = gameBlockInfo; _gameBlockSystem = gameBlockSystem; _gameBlockSystem.BlockCycleStartedEvent += OnBlockCycleStartedEvent; _gameBlockSystem.BlockCycleEndededEvent += OnBlockCycleEndededEvent; Initialized(); }
/// <summary> /// Initializes the GameBlock (WARNING: May only be called by the BaseGameBlockSystem!) /// </summary> public void Initialize(BaseGameBlockSystem <T> gameBlockSystem, IGameBlockInfo <T> gameBlockInfo) { U info = (U)gameBlockInfo; Initialize(gameBlockSystem, info); }