using System; using System.Collections.Generic; using cfg; using Gameplay; namespace Gameplay { public class JumpToManager { private static Dictionary _jumpDic = new Dictionary() { [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() { } } }