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