void Awake() { if (!mInstance) { mInstance = this; } else { Destroy(this.gameObject); return; } DontDestroyOnLoad(this.gameObject); characterScripts = GetComponent <CharacterScripts>(); }
void Start() { Events.ClickedOn += ClickedOn; Events.SetScriptSelected += SetScriptSelected; characterScripts = CharacterData.Instance.characterScripts; }