Example #1
0
    public static void TrackPhaseProgress(Phase PhaseInProgress)
    {
        string Label = "P" + PhaseInProgress.GetPrison() + "_" +
                        "L" + PhaseInProgress.GetLevel() + "_" +
                        "PH" + PhaseInProgress.GetPhase();

        int Progress = PhaseInProgress.IsPhaseCompleted() ? 1 : 0;
        Debug.Log("LevelTracker.cs -> Phase  Being Saved:" + Label + " as " + Progress);
        PlayerPrefs.GetInt (Label);
        PlayerPrefs.SetInt(Label, Progress);
    }