public static string GetText(this HintKey hintKey) { switch (hintKey) { case HintKey.CelebrateAction: return("HINT: Tap the laser button rapidly to celebrate your victory!"); case HintKey.ReflectAction: return("HINT: Dash into lasers to reflect them!"); default: return(""); } }
public static ActionHintTracker Get(HintKey hintKey) { return(actionHintTrackerMap_.GetAndCreateIfNotFound(hintKey)); }
public ActionHintAccumulator(HintKey hintKey, IEventRouter eventRouter) { hintKey_ = hintKey; eventRouter_ = eventRouter; }
// PRAGMA MARK - Public Interface public static void HandleActionPeriod(HintKey hintKey, bool actionPerformed) { var tracker = ActionHintTrackerRegistry.Get(hintKey); tracker.HandleActionPeriod(actionPerformed); }