private void LoadEmoteDatabase() { this.EmoteDatabase = EmoteDatabase.LoadFromXml(EmoteDatabasePath); if (this.EmoteDatabase == null) { SaveEmoteDatabase(); return; } }
void Awake() { emoteDictionary = new Dictionary <string, Sprite>(); for (int e = 0; e < emotes.Length; e++) { emoteDictionary.Add(keys[e], emotes[e]); } if (Instance == null) { Instance = this; } else if (Instance != this) { Destroy(gameObject); } }