1234567891011121314151617181920212223 |
- using UnityEngine;
- using System.Collections;
- public class ObjectiveMetNotification : ScreenBase
- {
- public LevelObjectiveUI objectiveUI;
- public void ShowObjectiveMet(LevelObjective levelObjective)
- {
- objectiveUI.SetObjective(levelObjective);
- objectiveUI.SetComplete(playSound:true);
- string objectivePrefix = string.Empty;
- string objectiveSuffix = "/"+objectiveUI.Target;
- objectiveUI.SetProgressValue(objectiveUI.Actual, objectivePrefix, objectiveSuffix);
- }
- public override void Show()
- {
- base.Show();
- Invoke("Hide", 2);
- }
- }
|