public void Start() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); return; } DontDestroyOnLoad(gameObject); gameObject.name = "KongregateAPI"; KAPIInit(); }
public void Start() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); return; } DontDestroyOnLoad(gameObject); gameObject.name = "KongregateAPI"; try { KAPIInit(); } catch { Debug.LogWarning("Couldn't start the Kongregate API"); } }