void OnEnable() { DontDestroyOnLoad(this); hitFXpooler = new ObjectPooler(); ghostDispearFXpooler = new ObjectPooler(); hitFXpooler.AutoReturnPool(hitFX, 5, 2); ghostDispearFXpooler.AutoReturnPool(ghostDispearFX, 5, 4); }