コード例 #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);
            }
        }
コード例 #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);
            }
        }
コード例 #3
0
ファイル: GameControler.cs プロジェクト: yqxflong/DashFire
 public static void ChangeScene(int sceneId)
 {
     LogSystem.Info("GameControler.ChangeScene {0}", sceneId);
     WorldSystem.Instance.ChangeNextScene(sceneId);
 }