/// <summary> /// Used to click on the block the player wants to interacts with /// </summary> public void OnMouseDown() { if (GC.diceValor == 0 && GC.faseGC != EnumFases.Hiding) { Debug.Log("Must roll die first."); } else { if (GC.faseGC == EnumFases.Playing) { if (Grid.CheckPreviousMove((int)this.transform.localPosition.x, (int)this.transform.localPosition.y)) { if (Grid.CheckIfSpecial((int)this.transform.localPosition.x, (int)this.transform.localPosition.y)) { LoadTextures(); } } else { Debug.Log("Not suposed to click here: " + GC.faseGC); } } else { if (GC.faseGC == EnumFases.FirstMove) { Testing1stLine(); } else { if (GC.faseGC == EnumFases.Hiding) { SelectingSpecialPositions(); } } } GC.ChangeTurn(); GC.CheckIfFinished(); } }