void BallCollectHandler(GameObject player, GameObject playerPart, GameObject ball) { if (ball.GetComponent <BadBall>()) { ArcadeStats.BadBallHit(ball.GetComponent <BadBall>()); } }
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 }
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 */ }
public override bool ConditionMet() { return(ArcadeStats.GetStat(stat) >= unlockRequirement); }