123456789101112131415161718192021222324252627282930313233343536 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class BlackMaskController : MonoBehaviour
- {
- public GameObject m_FristObj;
- public GameObject m_SencondObj;
- public GameObject m_ThirdObj;
- public GameObject m_FourthObj;
- public GameObject m_FifthObj;
- public void BlackMaskControl()
- {
- StartCoroutine(BlackMask());
- }
- IEnumerator BlackMask()
- {
- m_FristObj.SetActive(true);
- yield return new WaitForSeconds(0.5f);
- m_FristObj.SetActive(false);
- m_SencondObj.SetActive(true);
- yield return new WaitForSeconds(0.5f);
- m_SencondObj.SetActive(false);
- m_ThirdObj.SetActive(true);
- yield return new WaitForSeconds(0.5f);
- m_ThirdObj.SetActive(false);
- m_FourthObj.SetActive(true);
- yield return new WaitForSeconds(0.5f);
- m_FourthObj.SetActive(false);
- m_FifthObj.SetActive(true);
- yield return new WaitForSeconds(0.5f);
- m_FifthObj.SetActive(false);
- }
- }
|