public void Spawn() { var spawned = PoolController.SpawnFromGroup(grp, type, type + id, null, pos, rot, null); SceneSerializer ss = spawned.GetComponent <SceneSerializer>(); ss.__SetID(id); }