NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/JumpTo/JumpToManager.cs

34 lines
756 B
C#

using System;
using System.Collections.Generic;
using cfg;
using Gameplay;
namespace Gameplay
{
public class JumpToManager
{
private static Dictionary<JumpFuncType, Delegate> _jumpDic = new Dictionary<JumpFuncType, Delegate>()
{
[JumpFuncType.Cultivate_Character] = (Action) JumpToCultivateCharacter
};
private static void _DoJumpFunc(JumpFuncType key)
{
var action = _jumpDic[key];
if (action is Action act)
{
act();
}
}
public static void JumpFunc(JumpFuncType key)
{
_DoJumpFunc(key);
}
public static void JumpToCultivateCharacter()
{
}
}
}