using System.Collections; using System.Collections.Generic; using UnityEngine; public class InputDeviceKSLeftClose : MonoBehaviour { private float times = 0; private void Update() { times += Time.deltaTime; if(times>2f) { gameObject.SetActive(false); } } }