This commit is contained in:
Ivan Filipenkov 2023-08-17 23:44:41 +03:00
parent dd4a5c7fb2
commit 9a149199ac

View file

@ -25,7 +25,7 @@ namespace DangerousD.GameCore
public List<Player> players; public List<Player> players;
public List<GameObject> otherObjects = new(); public List<GameObject> otherObjects = new();
public Player GetPlayer1 => players[0]; public Player GetPlayer1;
public GameManager() public GameManager()
{ {
others = new List<GameObject>(); others = new List<GameObject>();
@ -49,6 +49,7 @@ namespace DangerousD.GameCore
{ {
livingEntities.Add(gameObject as LivingEntity); livingEntities.Add(gameObject as LivingEntity);
players.Add(objPl); players.Add(objPl);
GetPlayer1 = players[0];
} }
else if (gameObject is LivingEntity objLE) else if (gameObject is LivingEntity objLE)
{ {