选章节
This commit is contained in:
25
Assets/Scripts/UI/Base/WideScreenUI.cs
Normal file
25
Assets/Scripts/UI/Base/WideScreenUI.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
|
||||
namespace Ichni.UI
|
||||
{
|
||||
public class WideScreenUI : MonoBehaviour
|
||||
{
|
||||
public UnityAction wideScreenAction;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
if (!UIManager.instance.IsWideScreen())
|
||||
{
|
||||
gameObject.SetActive(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
wideScreenAction.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user