using System.Collections; using System.Collections.Generic; using UnityEngine; public class ShotImg : MonoBehaviour { public Transform imgs; public GameObject input; public GameObject view; public GameObject area; public GameObject nextStep; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { if (imgs.childCount >= 6) { nextStep.SetActive(true); TaskBase.Instacne.FinishTask(4); } } public void next() { input.SetActive(true); view.SetActive(false); area.SetActive(false); nextStep.SetActive(false); gameObject.SetActive(false); } }