91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 7.35MB
    文件類型: .zip
    金幣: 2
    下載: 1 次
    發布日期: 2024-03-10
  • 語言: 其他
  • 標簽: 背包系統??

資源簡介

我在一篇博客里介紹該源碼的生成流程,大家可以訪問去學習

資源截圖

代碼片段和文件信息

using?UnityEngine;
using?System.Collections;
using?System.Collections.Generic;
using?System.IO;
using?UnityEditor;
using?LitJson;


public?class?CreateGoodJson
{

[MenuItem(“CreateJson/GoodJson“)]
public?static?void?CreateJson()
{
List?list?=?new?List();

baseProperty?baseProperty_Ring?=?new?baseProperty(1?“Ring“?“傳說\n梅戒??攻擊?+10?防御?+100\n\nwww.liujunliang.com.cn???by?即歩“?10?100?80?“UI/Good?(1)“?KnapsackGood.GoodType.Consumable?KnapsackGood.GoodQuality.Common);
Consumable?good_Ring?=?new?Consumable(10?10?baseProperty_Ring);

????????baseProperty?baseProperty_Hat?=?new?baseProperty(2?“Hat“?“絕世\n無視寶帽??攻擊?+200?防御?+70\n\nwww.liujunliang.com.cn???by?即歩“?10?100?100?“UI/Good?(17)“?KnapsackGood.GoodType.Equipment?KnapsackGood.GoodQuality.Epic);
????????Equipment?good_Hat?=?new?Equipment(100?50?30?50?Equipment.EquitmentType.Head?baseProperty_Hat);

????????baseProperty?baseProperty_Wing?=?new?baseProperty(3?“Wing“?“天下無雙\n天使的翅膀??攻擊?+10?速度?+100\n\nwww.liujunliang.com.cn???by?即歩“?10?100?100?“UI/Good?(2)“?KnapsackGood.GoodType.Equipment?KnapsackGood.GoodQuality.Legendary);
????????Equipment?good_Wing?=?new?Equipment(100?50?30?50?Equipment.EquitmentType.Neck?baseProperty_Wing);

????????baseProperty?baseProperty_Cloth?=?new?baseProperty(4?“Cloth“?“稀有\n占靈寶甲??攻擊?-10?防御?+200\n\nwww.liujunliang.com.cn???by?即歩“?10?100?100?“UI/Good?(3)“?KnapsackGood.GoodType.Equipment?KnapsackGood.GoodQuality.Rare);
????????Equipment?good_Cloth?=?new?Equipment(100?50?30?50?Equipment.EquitmentType.Shoulder?baseProperty_Cloth);

????????baseProperty?baseProperty_Shoes?=?new?baseProperty(5?“Shoes“?“稀有\n急速戰靴??攻擊?-10?防御?+200\n\nwww.liujunliang.com.cn???by?即歩“?10?100?100?“UI/Good?(8)“?KnapsackGood.GoodType.Equipment?KnapsackGood.GoodQuality.Rare);
????????Equipment?good_Shoes?=?new?Equipment(100?50?30?50?Equipment.EquitmentType.Leg?baseProperty_Shoes);

????????baseProperty?baseProperty_Sword?=?new?baseProperty(6?“Sword“?“絕世\n獨孤九劍??攻擊?+200?防御?+70\n\nwww.liujunliang.com.cn???by?即歩“?10?100?100?“UI/Good?(21)“?KnapsackGood.GoodType.Weapon?KnapsackGood.GoodQuality.Uncommon);
????????Weapon?good_Sword?=?new?Weapon(100?Weapon.WeaponType.MainHand?baseProperty_Sword);

baseProperty?baseProperty_Axe?=?new?baseProperty(7“Axe“?“絕世\n巨凌戰斧??攻擊?+100?防御?+50\n\nwww.liujunliang.com.cn???by?即歩“10100100?“UI/Good?(6)“KnapsackGood.GoodType.WeaponKnapsackGood.GoodQuality.Uncommon);
????????Weapon?good_Axe?=?new?Weapon(50?Weapon.WeaponType.OffHand?baseProperty_Axe);

list.Add(good_Ring);
????????list.Add(good_Hat);
list.Add(good_Wing);
????????list.Add(good_Cloth);
????????list.Add(good_Shoes);
????????list.Add(good_Sword);
list.Add(good_Axe);

//生成Json
string?json?=?JsonMapper.ToJson(list);

string?path?=?Application.streamingAssetsPath?+?“/GoodJson.json“;


#region?文件流方式寫入文件
/*將json內容打包進文件,最好不要轉化編碼
????????//將Json信息保存進文件
????????using

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-04-19?20:29??KnapsackSystem\
?????目錄???????????0??2017-04-10?16:20??KnapsackSystem\.vs\
?????目錄???????????0??2017-04-10?16:20??KnapsackSystem\.vs\KnapsackSystem\
?????目錄???????????0??2017-04-15?15:40??KnapsackSystem\.vs\KnapsackSystem\v15\
?????文件??????107008??2017-04-16?21:31??KnapsackSystem\.vs\KnapsackSystem\v15\.suo
?????文件????????6894??2017-04-19?19:39??KnapsackSystem\Assembly-CSharp-Editor.csproj
?????文件????????5438??2017-04-19?19:39??KnapsackSystem\Assembly-CSharp.csproj
?????目錄???????????0??2017-04-13?20:37??KnapsackSystem\Assets\
?????目錄???????????0??2017-04-16?15:10??KnapsackSystem\Assets\Editor\
?????文件?????????192??2017-04-13?14:47??KnapsackSystem\Assets\Editor.meta
?????文件????????3741??2017-04-18?18:50??KnapsackSystem\Assets\Editor\CreateGoodJson.cs
?????文件?????????263??2017-04-13?14:48??KnapsackSystem\Assets\Editor\CreateGoodJson.cs.meta
?????目錄???????????0??2017-04-10?17:00??KnapsackSystem\Assets\Plugins\
?????文件?????????191??2017-04-10?12:43??KnapsackSystem\Assets\Plugins.meta
?????文件???????52736??2013-04-26?17:36??KnapsackSystem\Assets\Plugins\LitJson.dll
?????文件?????????393??2017-04-10?17:00??KnapsackSystem\Assets\Plugins\LitJson.dll.meta
?????目錄???????????0??2017-04-18?22:23??KnapsackSystem\Assets\Prefabs\
?????文件?????????192??2017-04-11?15:40??KnapsackSystem\Assets\Prefabs.meta
?????文件???????20676??2017-04-18?18:28??KnapsackSystem\Assets\Prefabs\BoxPanel.prefab
?????文件?????????179??2017-04-17?21:38??KnapsackSystem\Assets\Prefabs\BoxPanel.prefab.meta
?????文件???????21028??2017-04-18?22:23??KnapsackSystem\Assets\Prefabs\CharatorPanel.prefab
?????文件?????????179??2017-04-18?17:52??KnapsackSystem\Assets\Prefabs\CharatorPanel.prefab.meta
?????文件????????8092??2017-04-18?19:25??KnapsackSystem\Assets\Prefabs\Charatorslot.prefab
?????文件?????????179??2017-04-18?19:23??KnapsackSystem\Assets\Prefabs\Charatorslot.prefab.meta
?????文件???????11340??2017-04-15?16:22??KnapsackSystem\Assets\Prefabs\goodUI.prefab
?????文件?????????180??2017-04-11?16:17??KnapsackSystem\Assets\Prefabs\goodUI.prefab.meta
?????文件???????25100??2017-04-15?19:40??KnapsackSystem\Assets\Prefabs\KnapsackPanel.prefab
?????文件?????????180??2017-04-11?16:18??KnapsackSystem\Assets\Prefabs\KnapsackPanel.prefab.meta
?????文件????????8012??2017-04-13?20:51??KnapsackSystem\Assets\Prefabs\slot.prefab
?????文件?????????180??2017-04-13?20:24??KnapsackSystem\Assets\Prefabs\slot.prefab.meta
?????文件???????13700??2017-04-15?19:54??KnapsackSystem\Assets\Prefabs\ToolTilePanel.prefab
............此處省略599個文件信息

評論

共有 條評論