25 lines
516 B
C#
25 lines
516 B
C#
|
|
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();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|