using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Nullify : MonoBehaviour {

    public static void ResetAllStaticExceptLevelData() {
        // timescale
		Time.timeScale = 1f;

        // persistent data
        if (PersistentData.instance) {
            PersistentData.instance.DestroyPersistentData();
        }
    }

    public static void ResetAllStaticData() {

        ResetAllStaticExceptLevelData();
    }

	public static void ResetPlayerStats () {
		PersistantPlayerStats.currentXP = 0;
		PersistantPlayerStats.currentRank = 0;
		PersistantPlayerStats.currentScore = 0;

		if (PersistantPlayerStats.myStats && PersistantPlayerStats.myStats.gameObject) {
			Destroy (PersistantPlayerStats.myStats.gameObject);
		}
		PersistantPlayerStats.myStats = null;
	}
}
