public bool IsPushedTrackTutorialBit(TRACK_TUTORIAL_STEP_BIT bit) { if (bit == TRACK_TUTORIAL_STEP_BIT.MAX) { return(true); } return((pushTrackTutorialBit & (1L << (int)bit)) != 0); }
public void trackTutorialStep(TRACK_TUTORIAL_STEP_BIT stepName, string category, Dictionary <string, object> values) { if (!GameSaveData.instance.IsPushedTrackTutorialBit(stepName)) { string text = stepName.ToString(); string text2 = "track_" + text; if (PlayerPrefs.GetInt(text2, 0) == 0) { GoWrap.INSTANCE.trackEvent(text, category, values); GameSaveData.instance.SetPushedTrackTutorialBit(stepName); } } }
public void SetPushedTrackTutorialBit(TRACK_TUTORIAL_STEP_BIT bit) { pushTrackTutorialBit |= 1L << (int)bit; Save(); }