少年修仙传客户端代码仓库
client_LCJ
2018-08-10 1cf248efc881dd5d1234b483351c3a953f4cebd6
2030【前端】境界表添加特效id
4个文件已修改
67 ■■■■■ 已修改文件
Core/GameEngine/Model/Config/RealmConfig.cs 53 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/RealmConfig.cs.meta 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/DungeonModel.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Realm/RealmBossShow.cs 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/RealmConfig.cs
@@ -1,14 +1,14 @@
//--------------------------------------------------------
//    [Author]:            第二世界
//    [  Date ]:           Monday, August 06, 2018
//--------------------------------------------------------
using UnityEngine;
using System;
namespace TableConfig {
//--------------------------------------------------------
//    [Author]:            第二世界
//    [  Date ]:           Friday, August 10, 2018
//--------------------------------------------------------
using UnityEngine;
using System;
namespace TableConfig {
    public partial class RealmConfig : ConfigBase {
        public int Lv { get ; private set ; }
@@ -26,13 +26,14 @@
        public int Quality { get ; private set ; }
        public int FightPower { get ; private set ; }
        public int specialProperty { get ; private set ; }
        public int effectId { get ; private set ; }
        public override string getKey()
        {
            return Lv.ToString();
        }
        public override void Parse() {
        }
        public override void Parse() {
            try
            {
                Lv=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; 
@@ -74,17 +75,19 @@
                FightPower=IsNumeric(rawContents[13]) ? int.Parse(rawContents[13]):0; 
            
                specialProperty=IsNumeric(rawContents[14]) ? int.Parse(rawContents[14]):0; 
                effectId=IsNumeric(rawContents[15]) ? int.Parse(rawContents[15]):0;
            }
            catch (Exception ex)
            {
                DesignDebug.Log(ex);
            }
        }
    }
}
            }
        }
    }
}
Core/GameEngine/Model/Config/RealmConfig.cs.meta
@@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: a8e3498d4f8ba4d49820b7f43c810d3a
timeCreated: 1533525482
timeCreated: 1533905510
licenseType: Pro
MonoImporter:
  serializedVersion: 2
System/Dungeon/DungeonModel.cs
@@ -969,7 +969,7 @@
                            if (presentcfg != null && presentcfg.IsBigRealm == 1
                                && dungeonResult.leaderID == PlayerDatas.Instance.baseData.PlayerID)
                            {
                                RealmBossShow.Instance.Open();
                                RealmBossShow.Instance.Open(realmModel.cacheRealmLv);
                            }
                            else
                            {
System/Realm/RealmBossShow.cs
@@ -2,11 +2,11 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TableConfig;
namespace Snxxz.UI
{
    public class RealmBossShow : MonoBehaviour
    {
        [SerializeField, Header("特效id")] int m_EffectId = 0;
        [SerializeField, Header("隐藏场景时间")] float m_HideGroundTime = 2.02f;
        [SerializeField, Header("展示时间")] float m_DisplayTime = 15f;
        [SerializeField, Header("特效位置")] Vector3 m_EffectPosition = Vector3.zero;
@@ -45,12 +45,15 @@
        DateTime hideGroundTime = DateTime.Now;
        DateTime forceCloseTime = DateTime.Now;
        public void Open()
        int realmLv { get; set; }
        public void Open(int _realmLv)
        {
            if (!WindowCenter.Instance.CheckOpen<RealmBossShowWin>())
            {
                WindowCenter.Instance.Open<RealmBossShowWin>(true);
            }
            realmLv = _realmLv;
            StartCoroutine(Co_Start());
        }
@@ -71,7 +74,8 @@
            {
                IsOpen = true;
                transform.localPosition = Vector3.zero;
                m_Effect = SFXPlayUtility.Instance.Play(m_EffectId, transform);
                var config = ConfigManager.Instance.GetTemplate<RealmConfig>(realmLv);
                m_Effect = SFXPlayUtility.Instance.Play(config.effectId, transform);
                m_Effect.duration = 0;
                m_Effect.transform.localPosition = Vector3.zero;
                LayerUtility.SetLayer(m_Effect.gameObject, LayerUtility.BossShow, true);