Exemplo n.º 1
0
    public void OnAwake()
    {
        _user         = InjectBox.Get <GameManager>().GetCurrentUser();
        _poolManager  = InjectBox.Get <PoolManager>();
        _popupManager = InjectBox.Get <PopupManager>();
        _poolManager.PreLoad <Cube>(TetraminoController.Width * TetraminoController.Height);
        _tetraminoController = new TetraminoController();

        EventManager.Subscribe <OnGameOverEvent>(OnGameOver);
        EventManager.Subscribe <OnRetryLevelEvent>(OnRetryLevel);
        EventManager.Subscribe <OnMenuEvent>(OnMenu);
        EventManager.Subscribe <OnCompleteLineEvent>(OnCompleteLine);
    }
Exemplo n.º 2
0
 public SpawnTest(TetraminoController tetrisGrid, TetraminoFactory tetraminoFactory, SignalBus signalBus)
 {
     this.signalBus        = signalBus;
     this.tetrisGrid       = tetrisGrid;
     this.tetraminoFactory = tetraminoFactory;
 }
 private void Start()
 {
     TetraminoController.Ins = this;
     UpdateProjection();
 }
Exemplo n.º 4
0
 private void Update()
 {
     TetraminoController.ProcessMovementAndRotation(toControl, projection);
 }