Exemplo n.º 1
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
         DontDestroyOnLoad(instance);
     }
     else
     {
         Destroy(gameObject);
     }
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     cn = GameObject.FindGameObjectWithTag("Continue").GetComponent <continuenumber>();
 }