// Start is called before the first frame update void Start() { maze = gameObject.GetComponent <MazeLogic>(); arrows = new List <GameObject>(); nums = new List <GameObject>(); Debug.Log("Initializing arrows"); }
public static void ConsoleApp(Lobby lobby) { CharacterRepository _characterRepository = new CharacterRepository(); MemberRepository _memberRepository = new MemberRepository(); for (int i = 0; i < lobby.Maze.GetLength(1); i++) { for (int j = 0; j < lobby.Maze.GetLength(0); j++) { if (MazeLogic.CheckLobbyCoordinate(new Coordinate(j, i), lobby)[0] == MazeObjectType.Event) { Console.Write(EventLetter(MazeLogic.EventsOnCell(new Coordinate(j, i), lobby).First())); } else { var p = lobby.Players.Find(e => Equals(e.UserCoordinate, new Coordinate(j, i))); if (p != null) { Console.Write("p1"); } else { Console.Write(lobby.Maze[j, i] == 0 ? " " : "0 "); } } } Console.WriteLine(); } // Console.WriteLine(lobby.Events[1].Position.X + " " + lobby.Events[1].Position.Y); Console.WriteLine("Total users | " + _characterRepository.ReadAll().Count); Console.WriteLine("Online users | " + _memberRepository.ReadLobbyAll().Count); }
public MazeController(MazeLogic mazeLogic) { _mazeLogic = mazeLogic; }