fix
This commit is contained in:
parent
dd4a5c7fb2
commit
9a149199ac
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue