예제 #1
0
 private void Awake()
 {
     if (playerdat == null)
     {
         playerdat = PlayerDaOb.GetIns;
     }
 }
예제 #2
0
파일: IntroMan.cs 프로젝트: JK-IT/UnityGit
 private void Awake()
 {
     if (!pdatscript)
     {
         pdatscript = PlayerDaOb.GetIns;
     }
     popuploading.SetActive(false);
 }
예제 #3
0
파일: Helper.cs 프로젝트: JK-IT/UnityGit
        public static PlayerData StoreInfo(PlayerDaOb inobj)
        {
            PlayerData pda = new PlayerData();

            pda.playername = inobj.GetName();
            pda.hexcol     = inobj.GetColor();
            return(pda);
        }
예제 #4
0
파일: Helper.cs 프로젝트: JK-IT/UnityGit
    //** save player data object scriptable obj
    public static void SavepDat(string indpath, PlayerDaOb ddat)
    {
        Thread t = new Thread(() =>
        {
            PlayerData pd = PlayerData.StoreInfo(ddat);
            string jsobj  = JsonUtility.ToJson(pd);
            File.WriteAllText(indpath, jsobj);
        });

        t.IsBackground = true;
        t.Start();
    }