Tz2/Assets/Scripts/OfflineCountManager.cs

30 lines
819 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using DefaultNamespace.ProcessMode;
using Framework.Manager;
using MotionFramework;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class OfflineCountManager : MonoBehaviour
{
public TMP_InputField Input;
public Button button;
public GameObject game;
public GameObject game10kv;
private void Start()
{
button.onClick.AddListener(delegate
{
int count = game.transform.childCount;
game.transform.GetChild(count - int.Parse(Input.text)).gameObject.SetActive(false);
game10kv.SetActive(true);
MotionEngine.GetModule<ProcessManager>().HandleClick(Input.text);
TutorialGuideManager.Instance.HideGuide();
});
}
}