コード例 #1
0
ファイル: Maoubot.cs プロジェクト: imthe666st/TwitchSharp
 private void LoadEmoteDatabase()
 {
     this.EmoteDatabase = EmoteDatabase.LoadFromXml(EmoteDatabasePath);
     if (this.EmoteDatabase == null)
     {
         SaveEmoteDatabase();
         return;
     }
 }
コード例 #2
0
    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);
        }
    }