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); }
public SpawnTest(TetraminoController tetrisGrid, TetraminoFactory tetraminoFactory, SignalBus signalBus) { this.signalBus = signalBus; this.tetrisGrid = tetrisGrid; this.tetraminoFactory = tetraminoFactory; }
private void Start() { TetraminoController.Ins = this; UpdateProjection(); }
private void Update() { TetraminoController.ProcessMovementAndRotation(toControl, projection); }