public static StageTurnPointSet TurningGen(E_STAGE whatStage, float nowPos, float chunkMarginDiv, ref StageTurnPointSet turnSet) { if (StageST.turningPointQueue.Count == 0) { if (whatStage == E_STAGE.INFINITY) { InfinityFactory.GetInstance().MakeTurnSetQueNode(nowPos, chunkMarginDiv); } else { Debug.Log("맵 턴 큐 비었음."); turnSet.DisableThisSet(); return(turnSet); } } return(StageST.turningPointQueue.Dequeue()); }
public static void ObjGen(E_STAGE whatStage, Transform spawnPointGroup, ref List <GameObject> objs) { if (objs == null || spawnPointGroup == null) { return; } if (StageST.objQueue.Count == 0) { if (whatStage == E_STAGE.INFINITY) { InfinityFactory.GetInstance().MakeObjQueNode(); } else { return; } } StageObjArr soa = StageST.objQueue.Dequeue(); FixedObjGenerator.FixedObjGen(spawnPointGroup, soa.spawnObjType, ref objs); }