void Awake() { if (instance == null) instance = this; decoder = new ScriptDecoder(); try { node = decoder.decode("test_script"); } catch (Exception e) { Debug.LogError(e.Message); } if (instance != this) { Destroy(gameObject); } }
void Awake() { if (instance == null) instance = this; decoder = new ScriptDecoder(); try { node = decoder.decode("test_script"); } catch (Exception e) { Debug.LogError(e.Message); } if (instance != this) { Destroy(gameObject); } }