Beispiel #1
0
 void displayAllReturns(WowDelegate del)
 {
     foreach (WowDelegate n in del.GetInvocationList())
     {
         Debug.Log(n());
     }
 }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        CoolDelegate d = Foo;

        d += Goo;
        d += Tru;
        d();

        WowDelegate w = One;

        w += Two;
        w += Three;

        Debug.Log(w());
        displayAllReturns(w);
    }