using Code.Scripts.Gameplay.Game;
using Cysharp.Threading.Tasks;
using Framework;
using Gameplay;
using Gameplay.Net;
using Gameplay.Story;
using Gameplay.Utils;
using PhxhSDK;
using UnityEngine;
using UnityEngine.UI;
using Object = UnityEngine.Object;
///
/// 选人UI
///
public class UI_ChoosePersonController : UIWindow
{
///
/// 打开选人界面
///
///
public static async UniTask Open()
{
CommonUtils.CaptureScreenshot(); // 截取当前屏幕截图
return await UIManager.Instance.CreateAndOpenWindow(UINameConst.UI_ChoosePerson);
}
#region UI
///
/// 高斯模糊遮罩
///
private RawImage rawImageGaussianBlurMask;
///
/// 形象1按钮
///
private Button buttonModel1;
///
/// 形象2按钮
///
private Button buttonModel2;
///
/// 确定按钮
///
private Button buttonConfirm;
///
/// 选中状态1
///
private GameObject goSelect1;
///
/// 选中状态2
///
private GameObject goSelect2;
#endregion
private const string ANIM_STATE = "IsSelect";
///
/// 模型1
///
private GameObject goModel1;
///
/// 模型2
///
private GameObject goModel2;
private Animator animator1;
private Animator animator2;
///
/// 选择的模型id
///
private int selectModelId;
public override void OnInit()
{
rawImageGaussianBlurMask = GetComponent("GaussianBlurMask");
buttonModel1 = GetComponent