コード例 #1
0
    public void Awake()
    {
        achievementEvent.AddListener(this);

        _achievementsDict = new Dictionary <string, AchievementItemUI>();

        foreach (AchievementItemUI achievement in achievements)
        {
            _achievementsDict.Add(achievement.thisAchievement.key, achievement);
        }
    }
コード例 #2
0
 private void Start()
 {
     sayMyNameEvent.AddListener(SayMyName);
     echoThisEvent.AddListener(echoThisMessage);
 }