Пример #1
0
 public static void MouseDown(MouseButtonEventArgs e)
 {
     if (TempEnt == null)
     {
         TempEnt = EntManager.Create<ent_editor_build>();
         TempEnt.Spawn();
     }
     TempEnt.AddPoint(Editor.MousePos);
     //TempEnt.Points.Add(MousePos);
     //Points.Add(MousePos);
 }
Пример #2
0
            public static void KeyDown(KeyboardKeyEventArgs e)
            {
                if (e.Key == Key.Enter && TempEnt != null && TempEnt.Points.Count > 1)
                {
                    TempEnt.Build();

                    TempEnt = null;
                }
            }