added font, updated ui, fixed some code
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user