예제 #1
0
    // Use this for initialization
    void Start()
    {
        memoryGameScript = GameObject.Find("ColorSquares").GetComponent <MemoryGameScript>();
        counter          = 0;
        tenthsOfSecond   = 0;
        start            = false;
        timeLeft         = GameObject.Find("TimeLeftText2").GetComponent <Text>();

        timeLeft.text = "Time Left:        " + seconds.ToString() + "." + tenthsOfSecond.ToString();
    }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     memoryGameScript = GetComponentInParent <MemoryGameScript>();
 }