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>();
 }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
 public static void MessageWizard(DelegateFun fn)
 {
     fn("Rahul");
 }
Esempio n. 4
0
 public void T(string text, float time, DelegateFun callBack)
 {
     T(text, time);
     _callback = callBack;
 }
Esempio n. 5
0
 public Delegater(DelegateFun fun) : this()
 {
     myDelegateFun = fun;
 }