diff --git a/Assets/Scripts/Models/LevelGenerator.cs b/Assets/Scripts/Models/LevelGenerator.cs index 170eb24..8b34e74 100644 --- a/Assets/Scripts/Models/LevelGenerator.cs +++ b/Assets/Scripts/Models/LevelGenerator.cs @@ -134,7 +134,7 @@ namespace DeathBook.Model //Vector2 times = //Person p = new Person(id, pos,); - Person p = new Person(id); + Person p = new Person(id, pos); p.initialPosition = pos; return p; diff --git a/Assets/Scripts/Models/Person.cs b/Assets/Scripts/Models/Person.cs index 6d37ef3..2097751 100644 --- a/Assets/Scripts/Models/Person.cs +++ b/Assets/Scripts/Models/Person.cs @@ -42,10 +42,15 @@ namespace DeathBook.Model get { return numFriends; } } - public Person(int id, float x, float y, float z) + public bool Connected + { + get { return connected; } + } + + public Person(int id, Vector3 pos) { this.id = id; - initialPosition = new Vector3(x, y, z); + initialPosition = pos; alive = true; // Temporary