Example #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     for (int i = 0; i < game.models.Count; i++)
     {
         eggEditor.DeleteFromListBox(game.models[i]);
     }
     for (int i = 0; i < game.levelData.models.Count; i++)
     {
         game.Delete(game.levelData.models[i]);
     }
     game.models.Clear();
     this.Close();
 }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (checkBox1.Checked)
            {
                eggEditor.deletion = true;
                game.models.Remove(model);
                eggEditor.DeleteFromListBox(model);
                game.Delete(gameModel);
            }
            else
            {
                float floatvalueX = float.Parse(textBox1.Text);
                float floatvalueY = float.Parse(textBox2.Text);
                float floatvalueZ = float.Parse(textBox3.Text);

                model.Position     = new Vector3(floatvalueX, floatvalueY, floatvalueZ);
                gameModel.position = model.Position;
            }
            this.Close();
        }