This commit is contained in:
wulongxiao 2024-12-24 14:35:02 +08:00
parent 7f934a7245
commit dc0c8b9538
3 changed files with 18 additions and 26 deletions

View File

@ -89,31 +89,23 @@ public class SkillBox : Base
void InitSkil()
{
foreach (string _mengyaoRole in mengyaoRole.Keys)
foreach (string _mengyaoRoleId in mengyaoRole.Keys)
{
GameObject obj = Instantiate(Skill, SkillParent);
obj.GetComponent<Skill_Spend>().infobox_skill_up = infobox_skill;
//obj.GetComponent<Skill_Spend>().MySkill = mengyaoRole[_mengyaoRole].Myskill;
}
/*for (int i = 0; i < Base.GlobalObj.GetComponent<gameGlobal>().CarryCardId.Count; i++)
{
Base.GlobalObj.GetComponent<gameGlobal>().CarryCardId[i];
for (int j = 0; j < 2; j++)
{
GameObject obj = Instantiate(Skill,SkillParent);
obj.GetComponent<Skill_Spend>().infobox_skill_up = infobox_skill;
obj.GetComponent<Skill_Spend>().MySkill = MengyaoInfo.Instance.m_SkillData[i].skills[j];
foreach (Monster m in MengyaoInfo.Instance.m_SkillData)
{
if (m.temp_id == _mengyaoRoleId)
{
for (int j = 0; j < 2; j++)
{
GameObject obj = Instantiate(Skill, SkillParent);
obj.GetComponent<Skill_Spend>().infobox_skill_up = infobox_skill;
//obj.GetComponent<Skill_Spend>().infobox_skill_up = infobox_skill;
}
}
return;
}
}*/
//Base.GlobalObj.GetComponent<gameGlobal>().CarryCardId.Clear();
}
}

View File

@ -82,7 +82,7 @@ public class cardContorl : MonoBehaviour, IBeginDragHandler, IDragHandler, IEndD
{
mY.transform.position = mY.GetComponent<cardPlace>().tower.transform.position;
SkillBox.instance.mengyaoRole.Add(mY.GetComponent<Role>().id,mY.GetComponent<Role>());
///SkillBox.instance.mengyaoRole.Add(mY.GetComponent<Role>().id,mY.GetComponent<Role>());
this.enabled = false;
cardBox.instance.ChangeInPlaceNumber(1);

View File

@ -22,7 +22,7 @@ public class MengyaoInfo :JsonReadBase
Instance = this;
m_Mengyao = base.LoadJson<Character>(NameAsset);
base.DisplayData<Character>(m_Mengyao);
//base.DisplayData<Character>(m_Mengyao);
m_Level = base.LoadJson<Level>(LevelAsset);
// base.DisplayData<Level>(m_Level);
@ -32,7 +32,7 @@ public class MengyaoInfo :JsonReadBase
m_SkillData = base.LoadJson<Monster>(SkillAsset);
// Debug.Log(m_SkillData);
base.DisplayData<Monster>(m_SkillData);
//base.DisplayData<Monster>(m_SkillData);
}
// Update is called once per frame