diff --git a/ZoFo/GameCore/GameManagers/InputManager.cs b/ZoFo/GameCore/GameManagers/InputManager.cs index e6079b2..c4aa94d 100644 --- a/ZoFo/GameCore/GameManagers/InputManager.cs +++ b/ZoFo/GameCore/GameManagers/InputManager.cs @@ -168,7 +168,7 @@ namespace ZoFo.GameCore.GameManagers #endregion #region Обработка взаимодействия с collectable(например лутом). Вызывает событие OnInteract - if (keyBoardState.IsKeyDown(Keys.E) && !isInteract) + if ((keyBoardState.IsKeyDown(Keys.E) || mouseState.LeftButton == ButtonState.Pressed) && !isInteract) { OnInteract?.Invoke(); Debug.WriteLine("взаимодействие с Collectable"); diff --git a/ZoFo/GameCore/GameObjects/Entities/Interactables/Collectables/Peeble.cs b/ZoFo/GameCore/GameObjects/Entities/Interactables/Collectables/Peeble.cs index b2c36e6..40c60de 100644 --- a/ZoFo/GameCore/GameObjects/Entities/Interactables/Collectables/Peeble.cs +++ b/ZoFo/GameCore/GameObjects/Entities/Interactables/Collectables/Peeble.cs @@ -14,7 +14,7 @@ namespace ZoFo.GameCore.GameObjects { public class Peeble:Collectable { - public override StaticGraphicsComponent graphicsComponent { get; } = new(_path + "Peeble"); + public override StaticGraphicsComponent graphicsComponent { get; } = new(_path + "Pebble"); public Peeble(Vector2 position) : base(position) { } } diff --git a/ZoFo/GameCore/Server.cs b/ZoFo/GameCore/Server.cs index d0108ec..a032167 100644 --- a/ZoFo/GameCore/Server.cs +++ b/ZoFo/GameCore/Server.cs @@ -138,7 +138,7 @@ namespace ZoFo.GameCore //AppManager.Instance.server.RegisterGameObject(new EntittyForAnimationTests(new Vector2(0, 0))); for (int i = 0; i < networkManager.clientsEP.Count; i++) { - Player player = new Player(new Vector2(760 - 30 * i, 140)); + Player player = new Player(new Vector2(-800 - 30 * i, 750)); RegisterGameObject(player); networkManager.AddData(new UpdateCreatePlayer() { PlayerId = i+1, IdEntity=player.Id}); }