void initializeInstance() { if (instance != null) { Destroy(gameObject); return; } instance = this; DontDestroyOnLoad(gameObject); }
void Start() { canvas = gameCanvas.instance; factory = levelFactory.instance; InitializeUi(); }