using System.Collections;

using System.Collections.Generic;

using UnityEngine;


public class TouchScreen : MonoBehaviour {


// Use this for initialization

void Start ()ย 

{

StartCoroutine (flash());

}

// Update is calletd once per frame

void Update () {

}


IEnumerator flash(){

while(true){

gameObject.SetActive(false);

Debug.Log ("์‚ฌ๋ผ์ง");

yield return new WaitForSeconds(2);

Debug.Log ("์ •์ง€");

gameObject.SetActive(true);

}

}

}



์ด๋Ÿฐ์‹์œผ๋กœ ํ…์ŠคํŠธ(์Šคํ”„๋ผ์ดํŠธ)๊ฐ€ ๊นœ๋ฐ•๊ฑฐ๋ฆฌ๋Š”๊ฑธ ๊ตฌํ˜„ํ• ๋ ค๊ณ ํ•˜๋Š”๋ฐ

์—†์–ด์ง€๋Š”๊ฑฐ ๊นŒ์ง€๋Š” ์ž˜๋˜๊ณ  ๋””๋กœ๊ทธ'์‚ฌ๋ผ์ง'๋„ ์ž˜๋‚˜์˜ค๋Š”๋ฐ

์ •์ง€๋ถ€๋ถ„์—์„œ ์•ˆ๋‚˜์˜ค๋„ค์š”..

์–ด๋–ป๊ฒŒ ํ•ด์•ผ๋ ๊ฐ€์š”... ์•ˆ๋˜๋Š” ์ด์œ ๋Š” ๋จธ๊ณ ..