Esempio n. 1
0
 void OnBlockReleased()
 {
     if (draggedBlock.IsSnapped())
     {
         draggedBlock.Join();
     }
     else if (Time.time - lastBlockPressedDownTime < 0.1f)
     {
         draggedBlock.Rotate();
     }
     else if (GameplayUI.instance.IsOverUI(mousePos))
     {
         BlockManager.instance.Remove(draggedBlock);
     }
     GameplayUI.instance.SetRemoveImageEnabled(false);
     draggedBlock = null;
 }