public GameObjectPool(GameObject mPrefab, int initialCapacity, DelegateFun mFunction, bool mSetActiveRecursively) { this.prefab = mPrefab; this.setActiveRecursively = mSetActiveRecursively; this.listObj = new List <GameObject>(); this.listPool = new List <GameObject>(); }
static void Main(string[] args) { DelegateFun fun; int x = 4; int y = 2; fun = new DelegateFun(fun1); fun(x, y); fun = fun2; fun(x, y); fun = fun3; fun(x, y); fun = fun1; fun += fun2; fun += fun3; fun -= fun1; fun(x, y); Console.ReadLine(); }
public static void MessageWizard(DelegateFun fn) { fn("Rahul"); }
public void T(string text, float time, DelegateFun callBack) { T(text, time); _callback = callBack; }
public Delegater(DelegateFun fun) : this() { myDelegateFun = fun; }