// Use this for initialization void Start() { BreadthFirstPath path = BreadthFirstPath.Instance; path.updatePaths(); //Put it at 0.0! this.transform.position = new Vector2(Mathf.Floor(Random.Range(0, GameState.MAPWIDTH)), 0); }
// Use this for initialization void Start() { /*for (int x = 0; x < GameState.MAPWIDTH; x++) * { * for (int y = 0; y < GameState.MAPHEIGHT; y++) * { * GameState.setTile * } * }*/ BreadthFirstPath path = BreadthFirstPath.Instance; path.updatePaths(); }