Esempio n. 1
0
    public static void AddListnersToFreezer(UnityAction <int> listner)
    {
        freezerListners = listner;

        if (invoker != null)
        {
            invoker.AddListenerToFreezer(freezerListners);
        }
    }
Esempio n. 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);
        }
    }