void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } DontDestroyOnLoad(gameObject); time = 0; }
void Start() { var = FindObjectOfType <csTimer> (); var.clearstate.text = ""; }