void Awake () { if(!j){ j = this; DontDestroyOnLoad(gameObject.transform.parent.transform.parent.gameObject); } else { if (gameObject.transform.parent.gameObject != null) Destroy (gameObject.transform.parent.transform.parent.gameObject); } }
void Awake() { if (Instance != null) { Destroy(gameObject); } else { Instance = this; } DisableTextBox(); }
void Awake() { if (!j) { j = this; DontDestroyOnLoad(gameObject.transform.parent.transform.parent.gameObject); } else { if (gameObject.transform.parent.gameObject != null) { Destroy(gameObject.transform.parent.transform.parent.gameObject); } } }
RegisterAll(journal, sourcedTypes);