void Start() { if (instance != null && instance != this) { Destroy(gameObject); } else { instance = this; } DontDestroyOnLoad(gameObject); }
//private string debugstring; private void Awake() { Instance = this; }