Exemple #1
0
    public override void Execute(GameObject obj)
    {
        Poolable poolable = obj.GetComponent <Poolable> ();

        if (!poolable)
        {
            if (fallbackBehaviour)
            {
                fallbackBehaviour.Execute(obj);
            }
        }
        else
        {
            poolable.TryPool();
        }
    }