コード例 #1
0
    static public GameObject Create(SceneData.SceneNodeData data)
    {
        ViNoSceneManager sm = GameObject.FindObjectOfType(typeof(ViNoSceneManager)) as ViNoSceneManager;
        GameObject       go = sm.CreateSceneNode(ref data);

        return(go);
    }
コード例 #2
0
    static public void Create(Scene sceneData)
    {
//		Debug.Log( "CreateScene");
        ViNoSceneManager sm = GameObject.FindObjectOfType(typeof(ViNoSceneManager)) as ViNoSceneManager;

        for (int i = 0; i < sceneData.sceneNodesData.Length; i++)
        {
            sm.CreateSceneNode(ref sceneData.sceneNodesData[i]);
        }
    }