Beispiel #1
0
    //特殊演出削除
    private void removeTextProduction(string aName)
    {
        CustomProductionData tData = mCustomProductions[aName];
        int tLength = tData.mProduction.Count;

        tData.mProduction.RemoveAt(tLength - 1);
        //同名の演出が全て削除された場合はdictionaryから削除
        if (tLength == 1)
        {
            mCustomProductions.Remove(aName);
        }
    }
Beispiel #2
0
 //特殊演出追加
 private void addTextProduction(Action <MyBehaviour> aProduction, string aName)
 {
     if (!mCustomProductions.ContainsKey(aName))
     {
         //dictionaryにない場合は新たにstructを生成
         CustomProductionData tCreatedData = new CustomProductionData();
         tCreatedData.mName       = aName;
         tCreatedData.mProduction = new List <Action <MyBehaviour> >();
         mCustomProductions.Add(aName, tCreatedData);
     }
     //production追加
     mCustomProductions[aName].mProduction.Add(aProduction);
 }