private void Awake() { if (instance == null) { DontDestroyOnLoad(this.gameObject); instance = this; } else { Destroy(this.gameObject); } }
void Start() { theChoice = FindObjectOfType <chomanager>(); dm = FindObjectOfType <diamanager>(); }