public void PlacePlayerInRoom(Room aRoom)
    {
        Room myStartingRoom = aRoom;

        myPlayerMovement.transform.position = myStartingRoom.GetMidTile().transform.position + Vector3.forward * -0.05f;
        MapUI mapUI = myPlayerMovement.GetComponentInChildren <MapUI>();

        mapUI.Init();
        mapUI.SetRoomVisited(myStartingRoom.myRoomData.myX, myStartingRoom.myRoomData.myY);
        myPlayerMovement.SetCurrentRoom(myStartingRoom);
    }
Exemple #2
0
 public void InitLittleMap(int floor, Vector2Int playerPosition, Vector2Int startPosition, Vector2Int goalPosition, BoundsInt mapBound, List <Vector2Int> mapList)
 {
     MapUI.Init(floor, playerPosition, startPosition, goalPosition, mapBound, mapList);
 }
Exemple #3
0
 void Start()
 {
     PlayerD = PlayerData.Get(1);
     MapU    = MapUI.Instance;
     MapU.Init();
 }