some thing like this doesn’t work
public Dictionary<string, Func<Vector3, IEnumerator>> URDD;
private void Start()
{
URDD = new Dictionary<string, Func<Vector3, IEnumerator>>() {
["U"] = movePlayerUpCDirectionlist(Vector3.right)
};
}
and neither this
Dictionary<string, Coroutine> UpD = new Dictionary<string, Coroutine>();
Coroutine crt = StartCoroutine(movePlayerRightC(Vector3.right));