package com.jonathan.survivor.managers; import com.badlogic.gdx.utils.Array; import com.badlogic.gdx.utils.Pool; import com.esotericsoftware.spine.Skeleton; import com.jonathan.survivor.Assets; import com.jonathan.survivor.entity.Tree; class TreePool extends Pool { /** Called when no free objects are available in the pool, and a new one must be created. */ @Override public Tree newObject() { //Create and return a new tree. return new Tree(); } }