少年修仙传客户端代码仓库
client_Wu Xijin
2018-12-20 e8a9483456996d62467b59fad5a68a07c5af2e59
5398 【开发】【1.4】跨服竞技场 / 【前端】【1.4】跨服竞技场开发
1个文件已修改
37 ■■■■■ 已修改文件
Fight/Stage/StageManager.cs 37 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/Stage/StageManager.cs
@@ -8,7 +8,6 @@
[XLua.LuaCallCSharp]
public class StageManager : Singleton<StageManager>
{
    private Stage m_CurrentStage;
@@ -19,40 +18,32 @@
    public event Action<float> loadingProgressEvent;
    bool m_IsServerPreparing = false;
    public bool isServerPreparing
    {
    public bool isServerPreparing {
        get { return m_IsServerPreparing; }
        set { m_IsServerPreparing = value; }
    }
    public Stage.E_StageType StageType
    {
        get
        {
    public Stage.E_StageType StageType {
        get {
            return m_StageType;
        }
    }
    public Stage CurrentStage
    {
        get
        {
    public Stage CurrentStage {
        get {
            return m_CurrentStage;
        }
    }
    int m_CurrentMapId;
    public int currentMapId
    {
    public int currentMapId {
        get { return m_CurrentMapId; }
        private set { m_CurrentMapId = value; }
    }
    int m_CurrentMapResID;
    public int currentMapResId
    {
        get
        {
    public int currentMapResId {
        get {
            return m_CurrentMapResID;
        }
        private set { m_CurrentMapResID = value; }
@@ -63,11 +54,9 @@
    float m_LoadingProgress = 0f;
    float loadingProgress
    {
    float loadingProgress {
        get { return m_LoadingProgress; }
        set
        {
        set {
            m_LoadingProgress = value;
            if (loadingProgressEvent != null)
            {
@@ -85,9 +74,11 @@
        DebugEx.LogFormat("初始化StageManager");
    }
    public void Load<T>(int stageId) where T : Stage
    {
    public bool isClientChangeMap { get; private set; }
    public void Load<T>(int stageId, bool isClientChangeMap = false) where T : Stage
    {
        this.isClientChangeMap = isClientChangeMap;
        loadTimeOutCatcher = StageLoadTimeOutCatcher.Begin(stageId);
        // 读取配置的方式创建场景