Ejemplo n.º 1
0
	// Use this for initialization
	void Start () {
		
		memoryObj = GameObject.Find ("MemoryObject");

		if (memoryObj != null) {
			memorize = memoryObj.GetComponent<Memorize> ();
			stagename = memorize.fGetStageName ();
		}		
		
	}
    IEnumerator Start()
    {
        yield return new WaitForSeconds (1);

        memoryObj = GameObject.Find ("MemoryObject");
        if (memoryObj != null) {
            print (memoryObj);
            memorize = memoryObj.GetComponent<Memorize> ();
            stageName = memorize.fGetStageName ();

            print(memorize.fGetStageName ());
        }
        print (stageName);

        saveName = pathT + "/" + stageName;
        /*
        if (saveType == 3) {
            int ln = saveName.Length;
            GameObject.Find ("saveFolderText").GetComponent<Text> ().text = "";
        }
        */
    }
Ejemplo n.º 3
0
    IEnumerator Start()
    {
        yield return new WaitForSeconds (1);

        memoryObj = GameObject.Find ("MemoryObject");
        if (memoryObj != null) {
            print (memoryObj);
            memorize = memoryObj.GetComponent<Memorize> ();
            stageName = memorize.fGetStageName ();

            print(memorize.fGetStageName ());
        }
        print (stageName);

        saveName = pathT + "/" + stageName;

        if (saveType == 3) {
            int ln = saveName.Length;
            GameObject.Find ("saveFolderText").GetComponent<Text> ().text = "all system green ";
        }

        createstagecontroll = GameObject.Find ("Main").GetComponent<CreateStageControll> ();
        sendmail = GameObject.Find ("Main").GetComponent<SendMail> ();
    }