Esempio n. 1
0
    /// <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();
    }
Esempio n. 2
0
    /// <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);
    }