using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using System;
|
namespace Snxxz.UI
|
{
|
public class TalentTreeBehaviour : MonoBehaviour
|
{
|
[SerializeField] TalentTree[] talentTrees;
|
|
public bool BelongToTalentTree(int job, int series, int type)
|
{
|
for (int i = 0; i < talentTrees.Length; i++)
|
{
|
var talentTree = talentTrees[i];
|
if (talentTree.job == job && talentTree.series == series
|
&& talentTree.type == type)
|
{
|
return true;
|
}
|
}
|
return false;
|
}
|
}
|
|
[Serializable]
|
public struct TalentTree
|
{
|
public int job;
|
public int series;
|
public int type;
|
}
|
}
|