예제 #1
0
 public RigidBody(Texture2D texture, Vector2 pos, Vector2 size, Color color, PlatformObjectType objectType) : base(texture, pos, size, color, objectType)
 {
     connected   = new RigidBody[] { this };
     connectedID = nextUnusedConnectID++;
 }
예제 #2
0
 public PlatformObject(Texture2D texture, Vector2 pos, Vector2 size, Color color, PlatformObjectType objectType) : this(texture, pos, size)
 {
     this.color      = color;
     this.objectType = objectType;
 }