public virtual void SetUp(TetroMovement movement) { this.movement = movement; tetro = movement.Tetro; tiles = tetro.Tiles; grid = movement.Grid; settings = movement.Settings; }
private void Awake() { tetro = GetComponent <Tetro>(); tetro.OnStartFalling.AddListener(SetUp); tetro.OnDie.AddListener(OnDie); tiles = tetro.Tiles; settings = FindObjectOfType <GameController>().GameSettings; }