예제 #1
0
 public static void AddResource(float amount, TYPE_RESOURCES aType)
 {
     PlayerPrefs.SetFloat(RESOURCE_KEY + aType.ToString(), amount);
 }
예제 #2
0
 public static float GetResource(TYPE_RESOURCES aType)
 {
     return(PlayerPrefs.GetFloat(RESOURCE_KEY + aType.ToString()));
 }