选章节
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/UI/Base/WideScreenUI.cs.meta
Normal file
11
Assets/Scripts/UI/Base/WideScreenUI.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cd3a2e144d4d21649b01161673fbdb68
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user