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); }
public void InitLittleMap(int floor, Vector2Int playerPosition, Vector2Int startPosition, Vector2Int goalPosition, BoundsInt mapBound, List <Vector2Int> mapList) { MapUI.Init(floor, playerPosition, startPosition, goalPosition, mapBound, mapList); }
void Start() { PlayerD = PlayerData.Get(1); MapU = MapUI.Instance; MapU.Init(); }