void Awake() { if (Instance == null) { Instance = this; } else if (Instance != this) { Destroy(gameObject); } }
// Start is called before the first frame update void Start() { instance = this; }
void Awake() { if (Instance == null) { Instance = this; } else if (Instance != this) { Destroy(gameObject); } }
// Start is called before the first frame update void Start() { instance = this; }