Exemple #1
0
    // 成功驱逐村民的处理
    private void OnExpelOne(MissionExpelledNotification humanEvent)
    {
        // Text
        int i = Random.Range(0, humanEvent.PoliceWarningTexts.Length);

        FluentText.ChangeWord(humanEvent.PoliceWarningTexts[i]);

        // Audio
        int index = Random.Range(0, humanEvent.PoliceWarningAudios.Length);

        Audio.clip = resLoader.LoadSync <AudioClip>(humanEvent.PoliceWarningAudios[index]);
        Audio.Play();
    }
Exemple #2
0
 private void OnMissionExpelledNotify(MissionExpelledNotification notif)
 {
     ++missionExpelledRecord[(int)notif.EventType];
 }