Newer
Older
Björn Eßwein
committed
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SwitchScrollUI : MonoBehaviour
{
public GameObject ScrollShowUI;
public GameObject ScrollWebView;
void OnEnable()
{
switch (UIconfig.scrollViewVersion)
{
case UIconfig.ScrollViewVersion.ScrollShow:
ScrollWebView.SetActive(false);
ScrollShowUI.SetActive(true);
break;
case UIconfig.ScrollViewVersion.ScrollWebView:
ScrollShowUI.SetActive(false);
ScrollWebView.SetActive(true);
break;
default:
ScrollShowUI.SetActive(false);
ScrollWebView.SetActive(true);
break;
}
}
}