装备系统做了很多
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: a1c4cf8e52e6474dbd7c44be4a6a7810, type: 3}
|
||||
m_Name: 78101_equipment_upgrade_material
|
||||
m_EditorClassIdentifier:
|
||||
consumableKind: 0
|
||||
consumableName: "<color=#6A4C9C>\u7F8E\u5473\u5C0F\u86CB\u7CD5</color>"
|
||||
consumableSprite: {fileID: 21300000, guid: 2cc4c147b6b7649d6ac98a928018c544, type: 3}
|
||||
consumableDescription: "\u4E00\u5757\u770B\u4E0A\u53BB\u5F88\u597D\u5403\u7684\u6155\u65AF\u5976\u6CB9\u86CB\u7CD5\uFF0C\u53EF\u4EE5\u5E2E\u52A9\u8BB0\u5FC6\u8FFD\u5FC6"
|
||||
runtimeOwnedCount: 0
|
||||
consumableType: 0
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4b7d886fc44e4cbe9db602da8c2f9c11
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,20 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: a1c4cf8e52e6474dbd7c44be4a6a7810, type: 3}
|
||||
m_Name: 78111_equipment_breakthrough_material
|
||||
m_EditorClassIdentifier:
|
||||
consumableKind: 1
|
||||
consumableName: "<color=#B84C4C>\u5927\u578B\u70ED\u91CF\u70B8\u5F39</color>"
|
||||
consumableSprite: {fileID: 21300000, guid: 5e0181b769b64401bac538a3310aa847, type: 3}
|
||||
consumableDescription: "\u4E00\u4E2A\u5DE8\u5927\u768414\u5BF8\u6C34\u679C\u6155\u65AF\u5976\u6CB9\u86CB\u7CD5\uFF0C\u5B83\u5C06\u4F60\u5E26\u56DE\u4E86\u4F60\u4E0E\u521D\u604B\u7EA6\u4F1A\u7684\u90A3\u4E2A\u751C\u871C\u590F\u5929\u3002\n\n\u4F60\u671B\u7740\u5979\u7684\u80CC\u5F71\uFF0C\u5FC3\u4E2D\u90A3\u53E5\u8BDD\u6700\u7EC8\u8FD8\u662F\u6CA1\u6709\u8BF4\u51FA\u53E3\u3002\u5915\u9633\u4E2D\u4F60\u62D9\u52A3\u5730\u62E8\u5F04\u7740\u5409\u4ED6\u7684\u7434\u5F26\uFF0C\u534A\u751F\u4E0D\u719F\u5730\u5F39\u7740\u901F\u6210\u7684\u7B80\u5355\u8C31\u5B50\u3002\u5979\u8010\u5FC3\u5730\u542C\u5B8C\u4E86\uFF0C\u9752\u6DA9\u7684\u8138\u5E9E\u6CDB\u8D77\u7F9E\u6DA9\u817C\u8146\u7684\u7EA2\u6655\u3002\u5FAE\u98CE\u4E2D\uFF0C\u5979\u7684\u957F\u53D1\u5212\u8FC7\u5634\u89D2\uFF0C\u9732\u51FA\u53EA\u6709\u4F60\u80FD\u8BFB\u61C2\u7684\u5F27\u5EA6\u3002\n\n\u2014\u2014\u591A\u5E74\u8FC7\u53BB\uFF0C\u4F60\u518D\u672A\u5F97\u5230\u5979\u7684\u4EFB\u4F55\u6D88\u606F\u3002\u90A3\u628A\u5409\u4ED6\u627F\u8F7D\u7740\u4F60\u7684\u56DE\u5FC6\uFF0C\u6162\u6162\u5728\u5899\u89D2\u72EC\u81EA\u53D1\u9709\u3002\u60C5\u4E0D\u81EA\u7981\u5728\u8111\u6D77\u4E2D\u56DE\u671B\uFF0C\u4F46\u90A3\u91CC\u5DF2\u7ECF\u6CA1\u6709\u5979\u7684\u8EAB\u5F71\u4E86\u3002\n\n\u6B64\u6D88\u8017\u54C1\u7528\u4E8E<color=#B84C4C>\u8BB0\u5FC6\u5DE1\u6F14</color>\uFF0C\u5C06\u4F60\u77ED\u6682\u5730\u5E26\u56DE\u4F60\u751F\u547D\u4E2D\u6700\u5E78\u798F\u7684\u65F6\u523B\u3002\u53EA\u662F\u7247\u523B\u4E4B\u95F4\u4E5F\u4F1A\u5F88\u5FEB\u5316\u4F5C\u6CE1\u5F71\u5427\u3002"
|
||||
runtimeOwnedCount: 0
|
||||
consumableType: 1
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6b403344b9414dbba95b7311c3ff57fa
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,23 @@
|
||||
using UnityEngine;
|
||||
|
||||
[CreateAssetMenu(fileName = "78xxx_equipmentConsumable", menuName = "Store/Equipment Consumable Definition")]
|
||||
public class equipmentConsumableSO : ScriptableObject
|
||||
{
|
||||
public enum EquipmentConsumableType
|
||||
{
|
||||
UpgradeMaterial,
|
||||
BreakthroughMaterial
|
||||
}
|
||||
|
||||
[Header("Identity")]
|
||||
public EquipmentConsumableKind consumableKind = EquipmentConsumableKind.Material78101;
|
||||
public string consumableName;
|
||||
public Sprite consumableSprite;
|
||||
[TextArea(3, 3)] public string consumableDescription;
|
||||
|
||||
[Header("Runtime Mirror")]
|
||||
public int runtimeOwnedCount;
|
||||
|
||||
[Header("Gameplay")]
|
||||
public EquipmentConsumableType consumableType = EquipmentConsumableType.UpgradeMaterial;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a1c4cf8e52e6474dbd7c44be4a6a7810
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -28,6 +28,7 @@ public class storeItemSO : ScriptableObject
|
||||
public int associatedStorySonId = -1;
|
||||
public expBottlesSO associatedExpBottle; // Only used by single-target exp bottles such as 78001-78006
|
||||
public growthMaterialSO associatedGrowthMaterial; // Only used by breakthrough materials such as 78021-78024
|
||||
public equipmentConsumableSO associatedEquipmentConsumable; // Only used by equipment upgrade/breakthrough consumables such as 78101/78111
|
||||
|
||||
[Header("Purchase Cost")]
|
||||
public List<CostRequirement> costRequirements = new List<CostRequirement>();
|
||||
|
||||
Reference in New Issue
Block a user