Beispiel #1
0
    private void Start()
    {
        rofl = GameObject.Find("ManagerVF").GetComponent <ManagerVF>();


        // Write a message at each case
        if (rofl.IsWin("O"))
        {
            GameObject.Find("Result").GetComponent <Text>().text = "Your friend win! Click to take revenge!";
        }
        else if (rofl.IsWin("X"))
        {
            GameObject.Find("Result").GetComponent <Text>().text = "Ez win! Click to smak again.";
        }
        else
        {
            GameObject.Find("Result").GetComponent <Text>().text = "The game is hard! Click to get more chance.";
        }

        Update();
    }
Beispiel #2
0
 private void Start()
 {
     omg = GameObject.Find("ManagerVF").GetComponent <ManagerVF>();
     GameObject.Find("MyScore").GetComponent <Text>().text     = MyScore.ToString();
     GameObject.Find("FriendScore").GetComponent <Text>().text = FriendScore.ToString();
 }