Esempio n. 1
0
        public GameObject HouseToScene(House house)
        {
            coRunner   = new GameObject("CoroutineRunner").AddComponent <EmptyMono>();
            this.house = house;
            GameObject root = new GameObject("House_" + house.id);

            foreach (Level level in house.levels)
            {
                LoadLevel(root, level);
            }
            return(root);
        }
Esempio n. 2
0
    public static void DownloadAssetByWWW()
    {
        //loadasset("http://localhost/HotfixAsset/cube.txt");
        EmptyMono mono = GameObject.FindObjectOfType <EmptyMono>();

        if (!mono)
        {
            GameObject obj = new GameObject("Mono");
            mono = obj.AddComponent <EmptyMono>();
        }
        //"http://localhost/HotfixAsset/Version.txt"
        mono.StartCoroutine(ParseVersion("Version.txt"));
    }