private void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(this); return; } }
private void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(this); return; } manager = TouchManager.Instance; gameObject.hideFlags = HideFlags.HideInHierarchy; DontDestroyOnLoad(gameObject); }