Ejemplo n.º 1
0
        private GameObject CreateEmitterRootPoolObject(GameObjectPool objectPool)
        {
            GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.emitterRootProto);

            gameObject.name = gameObject.name + "_" + MultipleEmittersPool.ID++;
            MultipleEmittersPool.StopChildEmitters(gameObject);
            this.ActivateEmitterRootPoolObject(gameObject);
            return(gameObject);
        }
Ejemplo n.º 2
0
        private void StopEmitter(object cookie)
        {
            GameObject gameObject = (GameObject)cookie;

            if (gameObject != null)
            {
                MultipleEmittersPool.StopChildEmitters(gameObject);
            }
        }
Ejemplo n.º 3
0
 public unsafe static long $Invoke9(long instance, long *args)
 {
     MultipleEmittersPool.StopChildEmitters((GameObject)GCHandledObjects.GCHandleToObject(*args));
     return(-1L);
 }