Ejemplo n.º 1
0
        public Pop makePop(PopState state)
        {
            state.sprite = popSprites[0];
            var pop = new Pop(state);

            GameManager.idMaker.insertObject(pop, state.id);
            return(pop);
        }
Ejemplo n.º 2
0
 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);
 }