Exemplo n.º 1
0
 void Update()
 {
     if (!cell.gameField.CheckMove())
     {
         return;
     }
     if (cell.gameField.inRotate)
     {
         return;
     }
     if (cell.gameField.moveCrystals.Count != 0)
     {
         return;
     }
     if (type == TypeOfCrystal.starOfDeath && cell.targetOfDeathStar)
     {
         type = TypeOfCrystal.None;
         ScoreManager.AddDeathStar();
         cell.destroyEffect.Activate(gameObject, true, 1000);
     }
 }