34 lines
855 B
C#
34 lines
855 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading;
|
|
using BITKit.UX;
|
|
using Cysharp.Threading.Tasks;
|
|
using Project.B.Entities;
|
|
using Project.B.Map;
|
|
using UnityEngine;
|
|
using UnityEngine.UIElements;
|
|
using YooAsset;
|
|
|
|
namespace Net.Like.Xue.Tokyo.UX
|
|
{
|
|
public class UXMenu : UIToolKitPanel
|
|
{
|
|
protected override string DocumentPath => "ux_menu";
|
|
public override bool AllowInput => false;
|
|
public override bool AllowCursor => true;
|
|
[UXBindPath("play-button")]
|
|
private Button _playButton;
|
|
public UXMenu(IUXService uxService) : base(uxService)
|
|
{
|
|
OnInitiated += Initiated;
|
|
}
|
|
private void Initiated()
|
|
{
|
|
UXUtils.Inject(this);
|
|
|
|
_playButton.clicked += UXService.Entry<UXLevel>;
|
|
}
|
|
}
|
|
}
|