13 changed files with 174 additions and 1 deletions
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2 |
||||
guid: 8c2556b969d8e2e4881be5e4e996dfcc |
||||
folderAsset: yes |
||||
DefaultImporter: |
||||
externalObjects: {} |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2 |
||||
guid: 0640585ce4cc1ab43ad546d3258130dc |
||||
folderAsset: yes |
||||
DefaultImporter: |
||||
externalObjects: {} |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2 |
||||
guid: e67c6d5e54b9de94ab4e5d1865feb935 |
||||
folderAsset: yes |
||||
DefaultImporter: |
||||
externalObjects: {} |
||||
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: 31296c0321326704c8614b265011bd90, type: 3} |
||||
m_Name: Hero_1 |
||||
m_EditorClassIdentifier: |
||||
id: 1 |
||||
name: "\u9053\u58EB" |
||||
icon: hero_1 |
||||
hp: 100 |
||||
atk: 20 |
||||
speed: 1.2 |
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2 |
||||
guid: 5d9d9d9b6a4a85b468a248932c5ffc68 |
||||
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: 31296c0321326704c8614b265011bd90, type: 3} |
||||
m_Name: Hero_2 |
||||
m_EditorClassIdentifier: |
||||
id: 2 |
||||
name: "\u6218\u58EB" |
||||
icon: hero_2 |
||||
hp: 150 |
||||
atk: 15 |
||||
speed: 1 |
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2 |
||||
guid: 20719aba661cd244f9d4e3b1f45a3e14 |
||||
NativeFormatImporter: |
||||
externalObjects: {} |
||||
mainObjectFileID: 11400000 |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
@ -0,0 +1,52 @@
|
||||
//------------------------------------------------------------------------------ |
||||
// <auto-generated> |
||||
// This code was generated by a tool. |
||||
// Runtime Version:4.0.30319.42000 |
||||
// |
||||
// Changes to this file may cause incorrect behavior and will be lost if |
||||
// the code is regenerated. |
||||
// </auto-generated> |
||||
//------------------------------------------------------------------------------ |
||||
|
||||
namespace Tools.ExcelResolver |
||||
{ |
||||
using System; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using UnityEngine; |
||||
|
||||
|
||||
public class Hero : ScriptableObject, IExcelData |
||||
{ |
||||
|
||||
/// <summary> |
||||
/// 英雄 |
||||
/// </summary> |
||||
public int id; |
||||
|
||||
/// <summary> |
||||
/// 名称 |
||||
/// </summary> |
||||
public string name; |
||||
|
||||
/// <summary> |
||||
/// icon |
||||
/// </summary> |
||||
public string icon; |
||||
|
||||
/// <summary> |
||||
/// 血量 |
||||
/// </summary> |
||||
public int hp; |
||||
|
||||
/// <summary> |
||||
/// 攻击力 |
||||
/// </summary> |
||||
public int atk; |
||||
|
||||
/// <summary> |
||||
/// 移速 |
||||
/// </summary> |
||||
public float speed; |
||||
} |
||||
} |
@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2 |
||||
guid: 31296c0321326704c8614b265011bd90 |
@ -0,0 +1,25 @@
|
||||
//------------------------------------------------------------------------------ |
||||
// <auto-generated> |
||||
// This code was generated by a tool. |
||||
// Runtime Version:4.0.30319.42000 |
||||
// |
||||
// Changes to this file may cause incorrect behavior and will be lost if |
||||
// the code is regenerated. |
||||
// </auto-generated> |
||||
//------------------------------------------------------------------------------ |
||||
|
||||
namespace Tools.ExcelResolver |
||||
{ |
||||
using System; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using UnityEngine; |
||||
using Sirenix.OdinInspector; |
||||
|
||||
|
||||
public class HeroUtil : SerializedScriptableObject, IExcelSO |
||||
{ |
||||
|
||||
public Dictionary<int, Hero> Data; |
||||
} |
||||
} |
@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2 |
||||
guid: f75077205d2ee5349b19af6333dc2e66 |
Loading…
Reference in new issue