My problem is: I play a game , and I want that if you lose , inmediately in the top of the screen must appear a text with "Record: X" , I don't want change scene or something, no, I want only put a text in the top of screen in the same scene, like in Stack
Is possible?
My code for example is a 2 objects with collision, and when they collision, i want put this text in the top.
public class Colision : MonoBehaviour {
public Text points;
int contador=0;
int Veces_Pequeño=0;
void OnCollisionEnter(Collision col){
if ( col.gameObject.name == "Cube") {
col.gameObject.SetActive (false);
}
if ( col.gameObject.name == "Cube1") {
col.gameObject.SetActive (false);
}
}
}