Esempio n. 1
0
 void BallCollectHandler(GameObject player, GameObject playerPart, GameObject ball)
 {
     if (ball.GetComponent <BadBall>())
     {
         ArcadeStats.BadBallHit(ball.GetComponent <BadBall>());
     }
 }
Esempio n. 2
0
    void Start()
    {
                #if UNITY_EDITOR
        names  = new List <string>();
        values = new List <float>();

        System.Array keyValues = System.Enum.GetValues(typeof(ArcadeStats.StatKeys));
        for (int i = 0; i < keyValues.Length; i++)
        {
            ArcadeStats.StatKeys key = (ArcadeStats.StatKeys)keyValues.GetValue(i);
            names.Add(System.Enum.GetName(typeof(ArcadeStats.StatKeys), i));
            values.Add(ArcadeStats.GetStat(key));
        }
                #endif
    }
Esempio n. 3
0
    public void ResetProgress()
    {
        ChallengeProgressionManager.Instance.ResetProgress();



        ArcadeStats.Clear();
        PlayerPrefs.DeleteKey("TutorialCompleted");
        Application.LoadLevel(Application.loadedLevel);
        ArcadeProgression.Clear();

        /*
         #if UNITY_EDITOR
         * PlayerPrefs.SetInt("TutorialCompleted",1);
         #endif
         */
    }
Esempio n. 4
0
 public override bool ConditionMet()
 {
     return(ArcadeStats.GetStat(stat) >= unlockRequirement);
 }