示例#1
0
    public static void AddListnersToFreezer(UnityAction <int> listner)
    {
        freezerListners = listner;

        if (invoker != null)
        {
            invoker.AddListenerToFreezer(freezerListners);
        }
    }
示例#2
0
    public static void AddInvoker(PickUpBlock script)
    {
        invoker = script;

        if (freezerListners != null)
        {
            invoker.AddListenerToFreezer(freezerListners);
        }
        foreach (UnityAction <int, int> item in speedListeners)
        {
            invoker.AddListenerToSpeed(item);
        }
    }