Ejemplo n.º 1
0
        public override void OnEnter()
        {
            GameObject go = Fsm.GetOwnerDefaultTarget(gameObject);

            if (go != null)
            {
                ObjectPoolController poolController = go.GetComponent <ObjectPoolController>();
                if (poolController != null)
                {
                    poolController.UnloadAll();
                }
            }

            ObjectPool.ReleaseSpawnedMain(); // Release all spawner objects.

            Finish();
        }