コード例 #1
0
        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("");
            }
        }
コード例 #2
0
 public static ActionHintTracker Get(HintKey hintKey)
 {
     return(actionHintTrackerMap_.GetAndCreateIfNotFound(hintKey));
 }
コード例 #3
0
        public ActionHintAccumulator(HintKey hintKey, IEventRouter eventRouter)
        {
            hintKey_ = hintKey;

            eventRouter_ = eventRouter;
        }
コード例 #4
0
        // PRAGMA MARK - Public Interface
        public static void HandleActionPeriod(HintKey hintKey, bool actionPerformed)
        {
            var tracker = ActionHintTrackerRegistry.Get(hintKey);

            tracker.HandleActionPeriod(actionPerformed);
        }