void OnLevelWasLoaded(int level) { if (nullify) { return; } //give it a singelton style if (instance == null) { instance = this;// nullify = true; Initialize(); } }
public void Awake() { if (nullify) { return; } //give it a singelton style if (instance == null) { instance = this; // nullify = true; Initialize(); } }