void Awake() { if (instance == null) { DontDestroyOnLoad(this.gameObject); instance = this; restifizerManager = gameObject.GetComponent <Restifizer.RestifizerManager>(); if (restifizerManager == null) { restifizerManager = gameObject.AddComponent <Restifizer.RestifizerManager>(); } restifizerManager.baseUrl = baseUrl; } else { DestroyImmediate(this.gameObject); } }
void Start() { Instance = this; }
void Start () { Instance = this; }