1
This commit is contained in:
parent
fd16fcf420
commit
bdb8cec376
@ -52,6 +52,7 @@ namespace GameLogic
|
||||
private int m_AssetID = 0; // 资源ID,用于加载资源
|
||||
|
||||
private int textureId = 0;
|
||||
public int WaiXingCount = 0;
|
||||
|
||||
private Dictionary<string, List<Buff>> m_Buffs = new Dictionary<string, List<Buff>>(); //自身Buff列表
|
||||
|
||||
@ -255,6 +256,7 @@ namespace GameLogic
|
||||
private void RefreshUI()
|
||||
{
|
||||
m_tmpAllValue.text = ((int)m_AllPush).ToString();
|
||||
m_tmpWaiXing.text = WaiXingCount.ToString();
|
||||
}
|
||||
|
||||
List<GameObject> m_ListEgo = new List<GameObject>();
|
||||
|
@ -638,7 +638,6 @@ namespace GameLogic
|
||||
var item = m_TempList[i];
|
||||
// 添加减速Buff
|
||||
Buff m_Buff1 = new Buff();
|
||||
Log.Debug("????????" + giftConfig.AddPower * num);
|
||||
m_Buff1.OnInit(giftConfig.Id, giftConfig.AddPower * num, giftConfig.TimerLen, giftConfig.AddGiftScore, num);
|
||||
item.AddBuff(m_Buff1, unitPlayerData, giftConfig);
|
||||
|
||||
@ -736,8 +735,9 @@ namespace GameLogic
|
||||
|
||||
// 添加减速Buff给到
|
||||
var eGo = GameModule.Resource.LoadGameObject("WXSP");
|
||||
eGo.transform.SetParent(actor.GetRect().transform);
|
||||
eGo.transform.position = actor.GetRect().transform.position;
|
||||
eGo.transform.localPosition = new Vector3(1500, 0, 0);
|
||||
eGo.transform.localPosition = new Vector3(-1500, 0, 0);
|
||||
eGo.transform.localScale = Vector3.one;
|
||||
|
||||
// 移动特效
|
||||
@ -745,7 +745,10 @@ namespace GameLogic
|
||||
{
|
||||
GameObject.Destroy(eGo);
|
||||
|
||||
actor.WaiXingCount++;
|
||||
|
||||
var eGo1 = GameModule.Resource.LoadGameObject("WXSP_Birth");
|
||||
eGo1.transform.SetParent(actor.GetRect().transform);
|
||||
eGo1.transform.position = actor.GetRect().transform.position;
|
||||
eGo1.transform.localPosition = new Vector3(0, 0, 0);
|
||||
eGo1.transform.localScale = Vector3.one;
|
||||
|
Loading…
x
Reference in New Issue
Block a user