23 lines
559 B
C#
23 lines
559 B
C#
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);
|
|
}
|
|
}
|