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