// Start is called before the first frame update private void Awake() { if (Instance == null) { Instance = this; } }
void Awake() { if (instance == null) { instance = this; } }
void Awake() { //singleton if (instance == null) { instance = this; } }