public static void AddResource(float amount, TYPE_RESOURCES aType) { PlayerPrefs.SetFloat(RESOURCE_KEY + aType.ToString(), amount); }
public static float GetResource(TYPE_RESOURCES aType) { return(PlayerPrefs.GetFloat(RESOURCE_KEY + aType.ToString())); }