added font, updated ui, fixed some code

This commit is contained in:
TAASONI3
2023-12-13 12:49:38 +01:00
parent 10ad860d3e
commit 17a0a22dd4
65 changed files with 1697 additions and 5019 deletions

View File

@@ -1,5 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using Assets.Scripts.Player;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
@@ -9,7 +10,7 @@ namespace Assets.Scripts
public class ButtonHandler : MonoBehaviour
{
UIHandler uihandler;
Player player;
PlayerGameObject player;
AudioHandler audioHandler;
WorldGenerator worldGenerator;
GameObject fight;
@@ -17,7 +18,7 @@ namespace Assets.Scripts
private void Start()
{
uihandler = GameObject.Find("UIHandler").GetComponent<UIHandler>();
player = GameObject.Find("Player").GetComponent<Player>();
player = GameObject.Find("Player").GetComponent<PlayerGameObject>();
worldGenerator = GameObject.Find("WorldGenerator").GetComponent<WorldGenerator>();
audioHandler = GameObject.Find("AudioHandler").GetComponent<AudioHandler>();
fight = GameObject.Find("Fight");
@@ -98,12 +99,6 @@ namespace Assets.Scripts
uihandler.startGame();
}
public void switchCharactersheet()
{
audioHandler.playButtonClick();
uihandler.switchCharactersheet();
}
public void switchQuestlog()
{
audioHandler.playButtonClick();