public GameObject(string type) { Type = type; EntityId = TomatoMainEngine.GetNewEntityId(); _color[0] = 255; _color[1] = 255; _color[2] = 255; }
public GameObject() { Type = "Def"; EntityId = TomatoMainEngine.GetNewEntityId(); _color[0] = 255; _color[1] = 255; _color[2] = 255; }
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; }