Exemple #1
0
        public void LoadSceneNode(SceneNodeSaveData sceneNodeSaveData)
        {
            //Debug.Log("QuestLog.LoadQuest(" + questSaveData.MyName + ")");

            SceneNode sceneNode = GetResource(sceneNodeSaveData.MyName);

            if (sceneNode == null)
            {
                //Debug.LogError("SystemSceneNodeManager.LoadSceneNode(): Scene " + sceneNodeSaveData.MyName + " could not be found.");
                return;
            }
            sceneNode.MyCutsceneViewed = sceneNodeSaveData.isCutSceneViewed;
        }
Exemple #2
0
        public void LoadSceneNode(SceneNodeSaveData sceneNodeSaveData)
        {
            //Debug.Log("QuestLog.LoadQuest(" + questSaveData.MyName + ")");

            SceneNode sceneNode = GetResource(sceneNodeSaveData.MyName);

            if (sceneNode == null)
            {
                //Debug.LogError("SystemSceneNodeManager.LoadSceneNode(): Scene " + sceneNodeSaveData.MyName + " could not be found.");
                return;
            }
            if (sceneNodeSaveData.persistentObjects != null)
            {
                foreach (PersistentObjectSaveData persistentObjectSaveData in sceneNodeSaveData.persistentObjects)
                {
                    sceneNode.MyPersistentObjects.Add(persistentObjectSaveData.UUID, persistentObjectSaveData);
                }
            }
        }