/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); UpdateView(); GameObject lizard = new GameObject(); lizard.Name = "Lizard"; lizard.Model = Content.Load<Model>("Model\\Lizard"); lizard.Position = new Vector3(0f, 0f, -50f); lizard.Rotation = new Vector3((float)(Math.PI / -2), 0f, 0f); objects.Add(lizard); // TODO: use this.Content to load your game content here }
public GameObject Clone() { GameObject go = new GameObject(); go.Model = Model; go.Position = Position; go.rotation = Rotation; go.Scale = Scale; go.Color = Color; go.Name = Name; return go; }