32 lines
623 B
C#
32 lines
623 B
C#
using System.Collections.Generic;
|
|
using Prefab;
|
|
using UnityEngine;
|
|
using UnityEngine.Events;
|
|
|
|
namespace Base
|
|
{
|
|
public class RightMenu : Utils.MonoSingleton<RightMenu>
|
|
{
|
|
public RightMenuPrefab rightMenuPrefab;
|
|
|
|
public void Show()
|
|
{
|
|
rightMenuPrefab.Show();
|
|
}
|
|
|
|
public void Hide()
|
|
{
|
|
rightMenuPrefab.Hide();
|
|
}
|
|
public void Init(List<(string name, UnityAction callback)> buttons)
|
|
{
|
|
rightMenuPrefab.Init(buttons);
|
|
}
|
|
protected override void OnStart()
|
|
{
|
|
Hide();
|
|
}
|
|
}
|
|
|
|
}
|