Exemplo n.º 1
0
 void CheckPlayerOne(GameObject other)
 {
     if (c.playerOneVisit[0] && c.playerOneVisit[1] && c.playerOneVisit[2])
     {
         if (other.tag == "playerOne")
         {
             manager.LastTurn();
         }
         else
         {
             c.GameOver(player2);
         }
     }
 }
Exemplo n.º 2
0
    public void SkipTurn(string roomName)
    {
        //TO DO: reveal the info here
        //Double interact 2 end turn??
        //EndTurn();

        //prevents player from moving
        if (last_turn && !end)
        {
            end = true;
            mainCanvas.GameOver(player1);
        }
        if (end)
        {
            return;
        }
        if (hintText != null)
        {
            hintText.text = "You are in " + roomName;
        }
        numTaken      = maxTurns;
        turnText.text = numTaken.ToString();
        Debug.Log(roomName);
    }