mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-20 09:57:13 +08:00
(client) feat:添加基地界面到游玩界面的过程,添加存档管理,技能树变得可用 (#58)
Co-authored-by: m0_75251201 <m0_75251201@noreply.gitcode.com> Reviewed-on: http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite/pulls/58
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using Base;
|
||||
using Data;
|
||||
using Managers;
|
||||
using UnityEngine;
|
||||
@@ -52,7 +53,7 @@ namespace UI
|
||||
[SerializeField] private Color unlockedColor;
|
||||
[SerializeField] private Color lockedColor;
|
||||
[SerializeField] private GameObject shader;
|
||||
|
||||
|
||||
|
||||
public void Init(SkillTreeDef skillTreeDef)
|
||||
{
|
||||
@@ -163,16 +164,14 @@ namespace UI
|
||||
|
||||
public void OnPointerClick(PointerEventData eventData)
|
||||
{
|
||||
if (eventData.button == PointerEventData.InputButton.Left)
|
||||
if (eventData.button != PointerEventData.InputButton.Left) return;
|
||||
var window = UIInputControl.Instance.GetWindow("SkillTreeNodeInformation") as SkillTreeNodeInformationUI;
|
||||
if (!window)
|
||||
{
|
||||
SkillTreeManager.Instance.UnlockSkillTree(SkillTreeDefine.defName);
|
||||
Refresh();
|
||||
}
|
||||
else if (eventData.button == PointerEventData.InputButton.Right)
|
||||
{
|
||||
SkillTreeManager.Instance.LockSkillTree(SkillTreeDefine.defName);
|
||||
Refresh();
|
||||
return;
|
||||
}
|
||||
UIInputControl.Instance.Show(window);
|
||||
window.Init(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user