public Pop makePop(PopState state) { state.sprite = popSprites[0]; var pop = new Pop(state); GameManager.idMaker.insertObject(pop, state.id); return(pop); }
public Pop[] makePops(int num) { Pop[] pops = new Pop[num]; for (var i = 0; i < num; i++) { var popState = new PopState() { sprite = popSprites[0], named = new State.NamedState("pop") }; pops[i] = new Pop(popState); pops[i].state.id = GameManager.idMaker.newId(pops[i]); } return(pops); }