Beispiel #1
0
        private void PrintPosition(int key_code, int what)
        {
            UserInfo myself = WorldSystem.Instance.GetPlayerSelf();

            if (null != myself)
            {
                Vector3 pos = myself.GetMovementStateInfo().GetPosition3D();
                float   dir = myself.GetMovementStateInfo().GetFaceDir();
                LogSystem.Info("PrintPosition {0:F2} {1:F2} {2:F2} {3:F2}", pos.X, pos.Y, pos.Z, dir);
            }
        }
Beispiel #2
0
        internal void StartStory(int storyId)
        {
            StoryInstanceInfo inst = NewStoryInstance(storyId);

            if (null != inst)
            {
                m_StoryLogicInfos.Add(inst);
                inst.m_StoryInstance.Context         = m_CurScene;
                inst.m_StoryInstance.GlobalVariables = m_GlobalVariables;
                inst.m_StoryInstance.Start();

                LogSystem.Info("StartStory {0}", storyId);
            }
        }
Beispiel #3
0
 public static void ChangeScene(int sceneId)
 {
     LogSystem.Info("GameControler.ChangeScene {0}", sceneId);
     WorldSystem.Instance.ChangeNextScene(sceneId);
 }