my HEAD hurts and the SFX is TOO LOUD
This commit is contained in:
parent
a3321d361c
commit
d4ebf0ca61
41 changed files with 1465 additions and 123 deletions
23
Assets/Scripts/UILoader.cs
Normal file
23
Assets/Scripts/UILoader.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public class UILoader : MonoBehaviour
|
||||
{
|
||||
private MarisaAbilityHandler marisa;
|
||||
[SerializeField] private AbilityHotbarIcon[] hotbarIcons;
|
||||
private void Awake()
|
||||
{
|
||||
marisa = FindFirstObjectByType<MarisaAbilityHandler>();
|
||||
marisa.hotbarIcons = hotbarIcons;
|
||||
if (AbilitySceneTransfer.instance.savedAbilities.Count > 0)
|
||||
{
|
||||
LevelSwitcher.instance.SetupScene();
|
||||
}
|
||||
marisa.SetupAbilities();
|
||||
}
|
||||
|
||||
private void Start()
|
||||
{
|
||||
Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue