static public GameObject Create(SceneData.SceneNodeData data) { ViNoSceneManager sm = GameObject.FindObjectOfType(typeof(ViNoSceneManager)) as ViNoSceneManager; GameObject go = sm.CreateSceneNode(ref data); return(go); }
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]); } }