تسلم اخ مبارك على الشرح والله اختصرت على التفكير فى عملها ههههههههه صاير كسول جدا انا هذة الايام
تحياتى
تحياتى
void Update(){ if(Input.GetKeyDown(KeyCode.Space)){ StartCoroutine(Example()) ; } } IEnumerator Example(){ Debug.Log("Please Wait"); yield return new WaitForSeconds(1); Debug.Log(time.Time); }
using UnityEngine;
using System.Collections;
public class Text : MonoBehaviour {
public string word = "hello";
public char[] chars ;
public AudioClip sound;
void Awake(){
chars = word.ToCharArray();
}
IEnumerator Start(){
foreach(char letter in chars){
guiText.text += letter;
audio.PlayOneShot(sound);
yield return new WaitForSeconds (1);
}
}
}
تعليق