Exemplo n.º 1
0
    private void MovePlayerToStart()
    {
        var position  = DungeonData.GetEntrancePosition(DungeonData.currentLevel);
        var direction = DungeonData.GetEntranceDirection(DungeonData.currentLevel);

        player.GetComponent <PlayerMovement>().SetNewPosition(position + new Vector3(0f, 2.5f, 0f), direction);
    }