Exemplo n.º 1
0
    public void Caculate(CardType type, CardFunc func, ref RoleProperty role, int[] Values)
    {
        int n = (int)type; int m = (int)func;

        if (FuncDict[n, m] == null)
        {
            Debug.LogError("方法没有注册");
            return;
        }
        FuncDict[n, m](ref role, Values);
    }
Exemplo n.º 2
0
    public void REG(CardType type, CardFunc func, CaculateFunc cf)
    {
        int n = (int)type; int m = (int)func;

        FuncDict[n, m] = cf;
    }