Пример #1
0
 public void ToggleCharacterWindow()
 {
     if (_character == null && _player != null)
         _character = new CharacterWindow(new Vector2(300, 180), new Vector2(220, 320), _player);
     if (!_childs.Contains(_character))
         AddChild(_character);
     else
         RemoveChild(_character);
 }
Пример #2
0
 public void SetPlayer(Logic.Player player)
 {
     _player = player;
     _inventory = null;
     _character = null;
 }