fix
This commit is contained in:
parent
4b4738430e
commit
0ae47df396
3 changed files with 3 additions and 3 deletions
|
@ -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");
|
||||
|
|
|
@ -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) { }
|
||||
}
|
||||
|
|
|
@ -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});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue