Beispiel #1
0
    public void OnClickDressChangeButton(int itemId)
    {
        sePlayer.onClickSe();
        UserPlayData.Instance.selectItemId = itemId;
        Image img = changeCompleteWindow.transform.Find("SelectItem").GetComponent <Image>();

        img.sprite = Resources.Load <Sprite>("OnegaiIcon/" + PleaseItem.ItemNameList[UserPlayData.Instance.selectCharacterId][itemId].IconName);
        UserPlayData.UpdateSaveData();
        changeCompleteWindow.SetActive(true);
    }
Beispiel #2
0
    public void YesButtonClick()
    {
        sePlayer.onClickSe();
        UserPlayData.Instance.userGamePlayData.pleaseCommandFlg   = true;
        UserPlayData.Instance.userGamePlayData.pleaseCompleteTime = System.DateTime.Now;
        var itemGroupId = PleaseItem.ItemNameList[UserPlayData.Instance.userGamePlayData.pleaseCharacterId][UserPlayData.Instance.userGamePlayData.pleaseItemId].DressTypeName;

        UserPlayData.Instance.userGamePlayData.pleaseCompleteTime = UserPlayData.Instance.userGamePlayData.pleaseCompleteTime.Add(PleaseItem.PleaseTimeWaitGroupList[itemGroupId]);
        UserPlayData.UpdateSaveData();
        pleaseWindow.SetActive(false);
        MainStart();
    }