36 lines
881 B
C#
36 lines
881 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace BrewMonster
|
|
{
|
|
public class CECComboSkillState
|
|
{
|
|
public static CECComboSkillState instance;
|
|
public static CECComboSkillState Instance
|
|
{
|
|
get
|
|
{
|
|
if (instance == null)
|
|
{
|
|
instance = new CECComboSkillState();
|
|
}
|
|
return instance;
|
|
}
|
|
|
|
set => instance = value;
|
|
}
|
|
private Dictionary<uint, CECSkill> m_inherentSkillMap = new Dictionary<uint, CECSkill>();
|
|
|
|
public CECSkill GetInherentSkillByID(uint skillID)
|
|
{
|
|
if (m_inherentSkillMap.TryGetValue(skillID, out CECSkill skill))
|
|
{
|
|
return skill;
|
|
}
|
|
else
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
} |