12345678910111213141516171819202122232425262728293031323334353637 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class StartC : MonoBehaviour
- {
- // Start is called before the first frame update
- // IEnumerator wrapWaiF;
- void Start()
- {
- // wrapWaiF = WaitForStartTimer(3f);
-
- StartCoroutine(WaitForStartTimer(3));
- }
- // Update is called once per frame
- void Update()
- {
- if(Input.GetMouseButton(0))
- {
- Debug.Log("click mouse");
-
- StopCoroutine(WaitForStartTimer(3));
- }
- }
- IEnumerator WaitForStartTimer(float timer)
- {
- Debug.Log(111);
- yield return new WaitForSeconds(timer);
- Debug.Log(3333);
- }
- }
|