//セーブ
    public void Save(int SaveNum)
    {
        PlData = GetComponent <PlayerData>();
        TimeCounter tc   = GetComponent <TimeCounter>();
        SaveData    sd   = new SaveData();
        string      json = "";

        if (SaveNum != -1)
        {
            sd.money      = PlData.money;
            sd.days       = tc.GetTime().day;
            sd.hour       = tc.GetTime().hour;
            sd.second     = tc.GetTime().second;
            sd.itemvalues = GetComponent <ItemManager>().GetSaveItem();
            sd.ItemIsGet  = GetComponent <ItemManager>().GetSaveItemIsget();
            sd.plantN     = GetComponent <Planter>().GetPlantN();
            sd.plantG     = GetComponent <Planter>().GetPlantG();
            json          = JsonUtility.ToJson(sd);
            am.PlaySE(am.SE[3]);
        }
        else
        {
            json = JsonUtility.ToJson(GetComponent <Option>().GetConfigData());
        }
        File.WriteAllText(GetFileName(SaveNum), json);
        if (type == SLType.Save)
        {
            DonePanel.SetActive(true);
        }
        pos = NowPosition.Done;
    }
 public void SetTime()
 {
     if (time)
     {
         time.text = TimeCounter.GetTime();
     }
 }
 /*/ Shows the HUD After game start /*/
 private void UpdateTimer()
 {
     timerText.text = "Level: " + (LevelManager.currentLevel + 1) + "      Score: " + (PlayerBehaviour.totalScore + playerTransform.position.x).ToString("0") + "     Coins Collected: " + PlayerBehaviour.coinsCollected + "     Time: " + TimeCounter.GetTime();
 }