private static void showGameObject(string caption, GameObject gameObject)
        {
            GameObjectViewModel gameObjectViewModel = new GameObjectViewModel {
                Caption    = caption,
                GameObject = gameObject
            };

            GameObjectWindow gameObjectWindow = new GameObjectWindow(gameObjectViewModel);

            gameObjectWindow.Show();
        }
 public void Remove(GameObjectViewModel obj)
 {
     this.friendlyObjects.Remove(obj);
 }
Exemple #3
0
 public GameObjectWindow()
 {
     InitializeComponent();
     DataContext = new GameObjectViewModel();
 }
Exemple #4
0
 public override bool IsOver(GameObjectViewModel other)
 {
     return(base.IsOver(other));
 }