void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(instance); } else { Destroy(gameObject); } }
void Start() { continueNumber = GameObject.FindGameObjectWithTag("Continue").GetComponent <ContinueNumber>(); continueNumber.levelNumber = index; continueNumber.New(); }
void Start() { continueNumber = GameObject.FindGameObjectWithTag("Continue").GetComponent <ContinueNumber>(); }