コード例 #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));
     }
 }
コード例 #2
0
        public void Trigger()
        {
            TropheesStat tStats = TropheesStat.getInstance();

            tStats.unlockTropheeItem(identifier);
        }
コード例 #3
0
ファイル: TropheesStat.cs プロジェクト: Jales408/CvGame
 public void registerInstance()
 {
     tropheeStatInstance = this;
 }
コード例 #4
0
    public void Dab(GameObject dabAuthor)
    {
        TropheesStat tStats = TropheesStat.getInstance();

        tStats.unlockTropheeItem(identifier);
    }