Beispiel #1
0
 // Start is called before the first frame update
 void Start()
 {
     Cursor.lockState    = CursorLockMode.None;
     Cursor.visible      = true;
     nameCarryOverScript = GameObject.Find("ValueHolder").GetComponent <EndGameValues>();
     if (nameCarryOverScript.username != null)
     {
         wintext.text = nameCarryOverScript.username + " wins!";
     }
     else
     {
         wintext.text = "You lose";
     }
 }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     player1Board        = GameObject.Find("player1-board").GetComponent <Board>();
     player2Board        = GameObject.Find("player2-board").GetComponent <Board>();
     nameCarryOverScript = GameObject.Find("ValueHolder").GetComponent <EndGameValues>();
 }