using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class PlanUIInteractableCtrl : MonoBehaviour {
// Use this for initialization
void Start () {
UIInteractable();
}
///
/// 控制UI能否响应输入
///
private void UIInteractable()
{
//控制 InputField 可否接收输入
if (GetComponent())
{
if (ModeHelper.Mode == Mode.None)
{
GetComponent().interactable = true;
}
if (ModeHelper.Mode == Mode.MobileCommunication)
{
GetComponent().interactable = false;
}
}
}
// Update is called once per frame
void Update () {
}
}