using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class StartTutorial : MonoBehaviour
{
float timer;
int waitingTime;
int count;
GameObject TutoOne;
void Start()
{
timer = 0.0f;
waitingTime = 2;
TutoOne = GameObject.Find("Tutorial_1"); // ๋น์ฐํ ๊ทธ ์ฌ์ ์กด์ฌํ๋ ์ค๋ธ์ ํธ
while (count > 5)
{
timer += Time.deltaTime;
if (timer > waitingTime)
{
TutoOne.GetComponent<Text>().text = "ใ
ใดใ
ใน"
timer = 0;
}
}
}
void Update()
{
}
}
์ฝ๋๋ ์ด๊ฒ๋๋ค ์ฌ ์์๋ ๋ 2์ด ๊ฐ๊ฒฉ์ผ๋ก ํ
์คํธ๊ฐ ๋ณํ๊ฒ ํ๊ณ ์ถ์๋ฐ ใ
ใดใ
ใน๋ผ๊ณ ๋ณํ์ง๋ ์๋ค์;
ํ์ด๋จธ ์ฝ๋๋ ์ธํฐ๋ท์์ ๊ฒ์ํด์ ์ด๊ฑด๋ฐ ์ด๊ฒ ํ๋ฆฐ๊ฒ ์์๊น์?
count๋ ์ด๊ธฐํ๋ ์ํ๊ณ ... deltaTime์ Start์์ ๋ํด์ฃผ๊ณ ์๊ณ ...
ํด๋น ๋๊ธ์ ์ญ์ ๋์์ต๋๋ค.
์์ง ์ ๋ํฐ ๋ฐฐ์ด์ง ์ผ๋ง ์๋์.. ๊ฐ์ฌํฉ๋๋ค
์ผ๋จ ์ฝ๋ฃจํด ๋ถํฐ ๋ฐฐ์ฐ๊ณ ใฑใฑ