47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System;
|
|
using UnityEngine.Serialization;
|
|
|
|
[Serializable]
|
|
public class SaveData
|
|
{
|
|
public string fileName = "SaveData";
|
|
public string playerName;
|
|
public string username;
|
|
public string password;
|
|
private readonly string defaultPlayerName = "Player";
|
|
public string agePlayer;
|
|
public int unlockLevel;
|
|
|
|
public bool isPreTestComplete;
|
|
public float kesehatanGigiStatistik;
|
|
public float PenyakitGigiStatistik;
|
|
|
|
public float preTestStatistik;
|
|
public float postTestStatistik;
|
|
|
|
public bool[] isQuisKesehatanGigiComplete = new bool[5];
|
|
public bool[] isQuisPenyakitGigiComplete= new bool[4];
|
|
|
|
public SaveData()
|
|
{
|
|
playerName = defaultPlayerName;
|
|
agePlayer = "0";
|
|
unlockLevel = 1;
|
|
kesehatanGigiStatistik = 0;
|
|
PenyakitGigiStatistik = 0;
|
|
username = "";
|
|
password = "";
|
|
for (int i = 0; i < isQuisKesehatanGigiComplete.Length; i++)
|
|
{
|
|
isQuisKesehatanGigiComplete[i] = false;
|
|
}
|
|
|
|
for (int i = 0; i < isQuisPenyakitGigiComplete.Length; i++)
|
|
{
|
|
isQuisPenyakitGigiComplete[i] = false;
|
|
}
|
|
}
|
|
}
|