unıty objeyi yok etme ve skor
public int skor;
public Text skorText;
void OnMouseDown(){
Destroy(gameObject);
}
void Update(){
skor +=1;
}
//void puanekle(int puan){
// skor += puan;
// skorText.text = "Skor : " + skor;
// }
void OnGUI(){
GUILayout.Label ("zaman : " + skor.ToString());
//GUILayout.Label ();
}
}
Yorumlar
Yorum Gönder