public void StartStory(string storyId, string _namespace, params string[] overloadFiles) { StoryInstance inst = NewStoryInstance(storyId, _namespace, true, overloadFiles); if (null != inst) { m_StoryLogicInfos.Add(inst); inst.Context = m_UserThread; inst.GlobalVariables = m_GlobalVariables; inst.Start(); LogSystem.Info("StartStory {0}", storyId); } }
public void StartStory(string storyId) { StoryInstance inst = NewStoryInstance(storyId); if (null != inst) { m_StoryLogicInfos.Add(inst); inst.Context = m_CurScene; inst.GlobalVariables = m_GlobalVariables; inst.Start(); LogSystem.Info("StartStory {0}", storyId); } }
internal void StartStory(string storyId) { StoryInstance inst = NewStoryInstance(storyId); if (null != inst) { StopStory(storyId); m_StoryLogicInfos.Add(inst); inst.Context = m_CurUserThread; inst.GlobalVariables = m_GlobalVariables; inst.Start(); LogSystem.Info("StartStory {0}", storyId); } }
public void StartStory(string storyId, string _namespace, params string[] overloadFiles) { if (!string.IsNullOrEmpty(_namespace)) { storyId = string.Format("{0}:{1}", _namespace, storyId); } StoryInstance inst = GetStoryInstance(storyId); if (null != inst) { m_StoryLogicInfos.Add(inst); inst.Context = m_UserThread; inst.GlobalVariables = m_GlobalVariables; inst.Start(); LogSystem.Info("StartStory {0}", storyId); } else { LogSystem.Error("Can't find story, story:{0} !", storyId); } }
public void StartStory(string storyId, string _namespace) { if (!string.IsNullOrEmpty(_namespace)) { storyId = string.Format("{0}:{1}", _namespace, storyId); } StoryInstance inst = GetStoryInstance(storyId); if (null != inst) { StopStory(storyId); m_StoryLogicInfos.Add(inst); inst.Context = m_Scene; inst.GlobalVariables = m_GlobalVariables; inst.Start(); LogSystem.Info("StartStory {0}", storyId); } else { LogSystem.Error("Can't find story, story:{0} scene:{1} !", storyId, m_Scene.SceneResId); } }