예제 #1
0
 internal DrawElement getDrawElement()
 {
     drawElementAlive.setPos(physics.x, physics.y);
     drawElementDying.setPos(physics.x, physics.y);
     drawElementDead.setPos(physics.x, physics.y);
     if (state == CatState.ALIVE)
     {
         return(drawElementAlive);
     }
     if (state == CatState.DYING)
     {
         return(drawElementDying);
     }
     else
     {
         return(drawElementDead);
     }
 }
예제 #2
0
 public DrawElement getDrawElement()
 {
     drawElement.setPos(physics.x, physics.y);
     return(drawElement);
 }