コード例 #1
0
ファイル: TropheeSelecter.cs プロジェクト: Jales408/CvGame
 private void OnEnable()
 {
     if (!isInitialized)
     {
         TropheeSelectable[] selectablesList = GetComponentsInChildren <TropheeSelectable>();
         foreach (TropheeSelectable selectable in selectablesList)
         {
             selectable.RegisterSelecter(this, defaultTrophee);
         }
         isInitialized = true;
     }
     CleanDisplay();
     foreach (KeyValuePair <string, TropheeSelectable> keyValue in selectables)
     {
         TropheesStat tStats = TropheesStat.getInstance();
         keyValue.Value.changeTropheeContent(tStats.getTropheeItem(keyValue.Key));
     }
 }