Exemplo n.º 1
0
    private void LoadObjectPools()
    {
        if (m_ObjectPoolController == null)
        {
            return;
        }

        m_ObjectPoolController.LoadAll();
    }
Exemplo n.º 2
0
    private void Awake()
    {
        ObjectPool.InitializeMain();

        ObjectPoolController poolController = FindObjectOfType <ObjectPoolController>();

        if (poolController != null)
        {
            poolController.LoadAll();
        }
    }
        public override void OnEnter()
        {
            GameObject go = Fsm.GetOwnerDefaultTarget(gameObject);

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

            Finish();
        }