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