34 lines
756 B
C#
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()
|
|
{
|
|
|
|
}
|
|
}
|
|
} |