예제 #1
0
 public GameObject(string type)
 {
     Type      = type;
     EntityId  = TomatoMainEngine.GetNewEntityId();
     _color[0] = 255;
     _color[1] = 255;
     _color[2] = 255;
 }
예제 #2
0
 public GameObject()
 {
     Type      = "Def";
     EntityId  = TomatoMainEngine.GetNewEntityId();
     _color[0] = 255;
     _color[1] = 255;
     _color[2] = 255;
 }
예제 #3
0
 public GameObject(string type, float x, float y, float sx, float sy)
 {
     EntityId  = TomatoMainEngine.GetNewEntityId();
     _pos.x    = x;
     _pos.y    = y;
     _size.x   = sx;
     _size.y   = sy;
     _physSize = (_size.x + _size.y) / 2;
     _color[0] = 255;
     _color[1] = 255;
     _color[2] = 255;
 }