| | |
| | | bool isPlaying = true;
|
| | |
|
| | | bool m_Inited = false;
|
| | | public bool inited {
|
| | | public bool inited
|
| | | {
|
| | | get { return m_Inited; }
|
| | | private set { m_Inited = value; }
|
| | | }
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: b0344dc10812b4a459780c854ec6b5cc |
| | | folderAsset: yes |
| | | timeCreated: 1541130161 |
| | | licenseType: Free |
| | | DefaultImporter: |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 4638bdf69b2751946b84fa0b126f7d22 |
| | | folderAsset: yes |
| | | DefaultImporter: |
| | | externalObjects: {} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.IO; |
| | | |
| | | namespace H2Engine |
| | | { |
| | | public abstract class Bhv_Evt : MonoBehaviour |
| | | { |
| | | [HideInInspector] |
| | | public int id; |
| | | [HideInInspector] |
| | | public Evt.E_EventType type; |
| | | [HideInInspector] |
| | | protected bool showDetail = false; |
| | | |
| | | #if UNITY_EDITOR |
| | | public abstract bool DrawUI(GUISkin guiSkin); |
| | | public virtual void Save(BinaryWriter bw) |
| | | { |
| | | bw.Write((byte)type); |
| | | bw.Write(id); |
| | | bw.Write((float)System.Math.Round(transform.position.x)); |
| | | bw.Write((float)System.Math.Round(transform.position.y)); |
| | | bw.Write((float)System.Math.Round(transform.position.z)); |
| | | } |
| | | |
| | | public virtual void Load(BinaryReader br) |
| | | { |
| | | id = br.ReadInt32(); |
| | | float _x = br.ReadSingle(); |
| | | float _y = br.ReadSingle(); |
| | | float _z = br.ReadSingle(); |
| | | transform.position = new Vector3(_x, _y, _z); |
| | | } |
| | | |
| | | public virtual void Export(BinaryWriter bw) |
| | | { |
| | | bw.Write((byte)type); |
| | | bw.Write(id); |
| | | } |
| | | #endif |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: ad56736fc2a1a6a4ebed455e40f3c338 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using System.IO; |
| | | |
| | | #if UNITY_EDITOR |
| | | using UnityEditor; |
| | | #endif |
| | | |
| | | namespace H2Engine |
| | | { |
| | | public class Bhv_Evt_RefreshMonster : Bhv_Evt |
| | | { |
| | | [HideInInspector] |
| | | public Evt_RefreshMonster.E_OverCondition overCondition = Evt_RefreshMonster.E_OverCondition.None; |
| | | [HideInInspector] |
| | | public Evt_RefreshMonster.E_RefreshType refreshType = Evt_RefreshMonster.E_RefreshType.All; |
| | | [HideInInspector] |
| | | public List<Bhv_MonsterData> monsterList = new List<Bhv_MonsterData>(); |
| | | [HideInInspector] |
| | | public int conditionParam; |
| | | [HideInInspector] |
| | | public int overParam; |
| | | [HideInInspector] |
| | | private bool showMonsterList = false; |
| | | |
| | | #if UNITY_EDITOR |
| | | |
| | | public override void Save(BinaryWriter bw) |
| | | { |
| | | base.Save(bw); |
| | | bw.Write((byte)overCondition); |
| | | bw.Write((byte)refreshType); |
| | | bw.Write(conditionParam); |
| | | bw.Write(overParam); |
| | | bw.Write(monsterList.Count); |
| | | foreach (var _monster in monsterList) |
| | | { |
| | | _monster.Save(bw); |
| | | } |
| | | } |
| | | |
| | | public override void Export(BinaryWriter bw) |
| | | { |
| | | base.Export(bw); |
| | | bw.Write((byte)overCondition); |
| | | bw.Write((byte)refreshType); |
| | | bw.Write(conditionParam); |
| | | bw.Write(overParam); |
| | | bw.Write(monsterList.Count); |
| | | foreach (var _monster in monsterList) |
| | | { |
| | | _monster.Export(bw); |
| | | } |
| | | } |
| | | |
| | | public override void Load(BinaryReader br) |
| | | { |
| | | base.Load(br); |
| | | overCondition = (Evt_RefreshMonster.E_OverCondition)br.ReadByte(); |
| | | refreshType = (Evt_RefreshMonster.E_RefreshType)br.ReadByte(); |
| | | conditionParam = br.ReadInt32(); |
| | | overParam = br.ReadInt32(); |
| | | int _count = br.ReadInt32(); |
| | | for (int i = 0; i < _count; ++i) |
| | | { |
| | | var _go = new GameObject(); |
| | | _go.transform.SetParent(transform); |
| | | _go.transform.localPosition = Vector3.zero; |
| | | _go.transform.eulerAngles = Vector3.zero; |
| | | _go.transform.localScale = Vector3.one; |
| | | |
| | | var _monsterData = _go.AddComponent<Bhv_MonsterData>(); |
| | | monsterList.Add(_monsterData); |
| | | |
| | | _monsterData.Load(br); |
| | | } |
| | | } |
| | | |
| | | public override bool DrawUI(GUISkin guiSkin) |
| | | { |
| | | bool _result = false; |
| | | EditorGUILayout.BeginVertical(guiSkin.box); |
| | | EditorGUILayout.BeginHorizontal(GUILayout.Height(22)); |
| | | EditorGUI.indentLevel += 1; |
| | | showDetail = EditorGUILayout.Foldout(showDetail, " ID:" + id + " | Type: " + type, true, guiSkin.toggle); |
| | | if (GUILayout.Button("定位", guiSkin.button, GUILayout.Width(60), GUILayout.Height(22))) |
| | | { |
| | | Selection.activeGameObject = gameObject; |
| | | if (Selection.activeGameObject) |
| | | { |
| | | SceneView.lastActiveSceneView.LookAt(Selection.activeGameObject.transform.position); |
| | | } |
| | | } |
| | | if (GUILayout.Button("删除", guiSkin.button, GUILayout.Width(60), GUILayout.Height(22))) |
| | | { |
| | | _result = true; |
| | | } |
| | | EditorGUILayout.EndHorizontal(); |
| | | if (showDetail) |
| | | { |
| | | EditorGUILayout.BeginHorizontal(GUILayout.Height(22)); |
| | | EditorGUILayout.LabelField("刷怪方式", guiSkin.customStyles[0], GUILayout.Height(22), GUILayout.Width(60)); |
| | | refreshType = (Evt_RefreshMonster.E_RefreshType)EditorGUILayout.EnumPopup(refreshType, guiSkin.box, GUILayout.Height(20)); |
| | | EditorGUILayout.EndHorizontal(); |
| | | |
| | | EditorGUILayout.BeginHorizontal(GUILayout.Height(22)); |
| | | if (refreshType == Evt_RefreshMonster.E_RefreshType.OneByOneTime) |
| | | { |
| | | EditorGUILayout.LabelField("等待时间", guiSkin.customStyles[0], GUILayout.Height(22), GUILayout.Width(60)); |
| | | conditionParam = EditorGUILayout.IntField(conditionParam, guiSkin.textField, GUILayout.Height(20)); |
| | | } |
| | | EditorGUILayout.EndHorizontal(); |
| | | |
| | | EditorGUILayout.BeginHorizontal(GUILayout.Height(22)); |
| | | EditorGUILayout.LabelField("完成方式", guiSkin.customStyles[0], GUILayout.Height(22), GUILayout.Width(60)); |
| | | overCondition = (Evt_RefreshMonster.E_OverCondition)EditorGUILayout.EnumPopup(overCondition, guiSkin.box, GUILayout.Height(20)); |
| | | EditorGUILayout.EndHorizontal(); |
| | | |
| | | EditorGUILayout.BeginHorizontal(GUILayout.Height(22)); |
| | | if (overCondition == Evt_RefreshMonster.E_OverCondition.DeadCount) |
| | | { |
| | | EditorGUILayout.LabelField("死亡数量", guiSkin.customStyles[0], GUILayout.Height(22), GUILayout.Width(60)); |
| | | overParam = EditorGUILayout.IntField(overParam, guiSkin.textField, GUILayout.Height(20)); |
| | | } |
| | | else if (overCondition == Evt_RefreshMonster.E_OverCondition.Time) |
| | | { |
| | | EditorGUILayout.LabelField("结束时间", guiSkin.customStyles[0], GUILayout.Height(22), GUILayout.Width(60)); |
| | | overParam = EditorGUILayout.IntField(overParam, guiSkin.textField, GUILayout.Height(20)); |
| | | } |
| | | EditorGUILayout.EndHorizontal(); |
| | | |
| | | EditorGUILayout.BeginVertical(guiSkin.customStyles[1]); |
| | | EditorGUILayout.BeginHorizontal(GUILayout.Height(22)); |
| | | showMonsterList = EditorGUILayout.Foldout(showMonsterList, " 刷怪列表", true, guiSkin.toggle); |
| | | if (GUILayout.Button("添加", guiSkin.button, GUILayout.Width(60), GUILayout.Height(22))) |
| | | { |
| | | var _go = new GameObject("RefreshMonster"); |
| | | _go.transform.SetParent(transform); |
| | | _go.transform.localPosition = Vector3.zero; |
| | | _go.transform.eulerAngles = Vector3.zero; |
| | | _go.transform.localScale = Vector3.one; |
| | | |
| | | var _monsterData = _go.AddComponent<Bhv_MonsterData>(); |
| | | monsterList.Add(_monsterData); |
| | | |
| | | showMonsterList = true; |
| | | } |
| | | EditorGUILayout.EndHorizontal(); |
| | | if (showMonsterList) |
| | | { |
| | | for (int i = monsterList.Count - 1; i >= 0; --i) |
| | | { |
| | | EditorGUILayout.BeginHorizontal(GUILayout.Height(22)); |
| | | EditorGUILayout.LabelField("NPCID", guiSkin.customStyles[0], GUILayout.Height(22), GUILayout.Width(60)); |
| | | var _npcID = monsterList[i].npcID; |
| | | monsterList[i].npcID = EditorGUILayout.IntField(monsterList[i].npcID, guiSkin.textField, GUILayout.Height(20)); |
| | | if (_npcID != monsterList[i].npcID) |
| | | { |
| | | monsterList[i].name = monsterList[i].npcID + "_RefreshNPC"; |
| | | } |
| | | if (GUILayout.Button("定高", guiSkin.button, GUILayout.Width(60), GUILayout.Height(20))) |
| | | { |
| | | Vector3 _pos = monsterList[i].transform.position; |
| | | _pos.y = 0; |
| | | RaycastHit _hit; |
| | | |
| | | Ray _ray = new Ray(_pos + Vector3.up * 100, Vector3.down); |
| | | if (Physics.Raycast(_ray, out _hit, 200, 1 << LayerMask.NameToLayer("Walkable"))) |
| | | { |
| | | monsterList[i].transform.position = _hit.point; |
| | | } |
| | | } |
| | | if (GUILayout.Button("查找", guiSkin.button, GUILayout.Width(60), GUILayout.Height(20))) |
| | | { |
| | | Selection.activeGameObject = monsterList[i].gameObject; |
| | | if (Selection.activeGameObject) |
| | | { |
| | | SceneView.lastActiveSceneView.LookAt(Selection.activeGameObject.transform.position); |
| | | } |
| | | } |
| | | if (GUILayout.Button("删除", guiSkin.button, GUILayout.Width(60), GUILayout.Height(20))) |
| | | { |
| | | DestroyImmediate(monsterList[i].gameObject); |
| | | monsterList.RemoveAt(i); |
| | | } |
| | | EditorGUILayout.EndHorizontal(); |
| | | } |
| | | } |
| | | EditorGUILayout.EndVertical(); |
| | | } |
| | | |
| | | EditorGUI.indentLevel -= 1; |
| | | EditorGUILayout.EndVertical(); |
| | | return _result; |
| | | } |
| | | #endif |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 86cb95cb9f7327a45b701b48c6d717d2 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections.Generic; |
| | | using System.IO; |
| | | |
| | | namespace H2Engine |
| | | { |
| | | public class Bhv_MapData : MonoBehaviour |
| | | { |
| | | [HideInInspector] |
| | | public int id; |
| | | public bool showTriggerList = false; |
| | | public bool showEventList = false; |
| | | public bool showTransferList = false; |
| | | [HideInInspector] |
| | | public List<Bhv_MapTrigger> triggerList = new List<Bhv_MapTrigger>(); |
| | | [HideInInspector] |
| | | public List<Bhv_Evt> eventList = new List<Bhv_Evt>(); |
| | | [HideInInspector] |
| | | public List<Bhv_Trasfer> transferList = new List<Bhv_Trasfer>(); |
| | | |
| | | #if UNITY_EDITOR |
| | | |
| | | public const string NodeName_Root = "MapEditor"; |
| | | public const string NodeName_TriggerList = "TriggerList"; |
| | | public const string NodeName_EventList = "EventList"; |
| | | public const string NodeName_TransferList = "TransferList"; |
| | | public const string NodeName_Trigger = "Trigger_"; |
| | | public const string NodeName_Event = "Event_"; |
| | | public const string NodeName_Transfer = "Transfer_"; |
| | | |
| | | public void Save(BinaryWriter bw) |
| | | { |
| | | bw.Write(id); |
| | | bw.Write(triggerList.Count); |
| | | foreach (var _trigger in triggerList) |
| | | { |
| | | _trigger.Save(bw); |
| | | } |
| | | bw.Write(eventList.Count); |
| | | foreach (var _event in eventList) |
| | | { |
| | | _event.Save(bw); |
| | | } |
| | | bw.Write(transferList.Count); |
| | | foreach (var _transfer in transferList) |
| | | { |
| | | _transfer.Save(bw); |
| | | } |
| | | } |
| | | |
| | | public void Export(BinaryWriter bw) |
| | | { |
| | | bw.Write(id); |
| | | bw.Write(triggerList.Count); |
| | | foreach (var _trigger in triggerList) |
| | | { |
| | | _trigger.Export(bw); |
| | | } |
| | | bw.Write(eventList.Count); |
| | | foreach (var _event in eventList) |
| | | { |
| | | _event.Export(bw); |
| | | } |
| | | bw.Write(transferList.Count); |
| | | foreach (var _transfer in transferList) |
| | | { |
| | | _transfer.Export(bw); |
| | | } |
| | | } |
| | | |
| | | public void Load(BinaryReader br) |
| | | { |
| | | id = br.ReadInt32(); |
| | | int _count = br.ReadInt32(); |
| | | GameObject _go = null; |
| | | for (int i = 0; i < _count; ++i) |
| | | { |
| | | _go = new GameObject(NodeName_Trigger + i); |
| | | _go.transform.position = Vector3.zero; |
| | | _go.transform.eulerAngles = Vector3.zero; |
| | | _go.transform.localScale = Vector3.one; |
| | | var _triggerBhv = _go.AddComponent<Bhv_MapTrigger>(); |
| | | _triggerBhv.boxCollider = _go.AddComponent<BoxCollider>(); |
| | | _triggerBhv.transform.SetParent(transform.Find(NodeName_TriggerList)); |
| | | triggerList.Add(_triggerBhv); |
| | | _triggerBhv.Load(br); |
| | | } |
| | | _count = br.ReadInt32(); |
| | | for (int i = 0; i < _count; ++i) |
| | | { |
| | | _go = new GameObject(NodeName_Event + i); |
| | | _go.transform.position = Vector3.zero; |
| | | _go.transform.eulerAngles = Vector3.zero; |
| | | _go.transform.localScale = Vector3.one; |
| | | var _type = (Evt.E_EventType)br.ReadByte(); |
| | | if (_type == Evt.E_EventType.Enemy) |
| | | { |
| | | var _eventBhv = _go.AddComponent<Bhv_Evt_RefreshMonster>(); |
| | | _eventBhv.type = _type; |
| | | _eventBhv.transform.SetParent(transform.Find(NodeName_EventList)); |
| | | eventList.Add(_eventBhv); |
| | | _eventBhv.Load(br); |
| | | } |
| | | } |
| | | _count = br.ReadInt32(); |
| | | for (int i = 0; i < _count; ++i) |
| | | { |
| | | _go = new GameObject(NodeName_Transfer + i); |
| | | _go.transform.position = Vector3.zero; |
| | | _go.transform.eulerAngles = Vector3.zero; |
| | | _go.transform.localScale = Vector3.one; |
| | | var _transferBhv = _go.AddComponent<Bhv_Trasfer>(); |
| | | _transferBhv.transform.SetParent(transform.Find(NodeName_TransferList)); |
| | | transferList.Add(_transferBhv); |
| | | _transferBhv.Load(br); |
| | | } |
| | | |
| | | } |
| | | |
| | | public void Clear() |
| | | { |
| | | showTriggerList = false; |
| | | showEventList = false; |
| | | showTriggerList = false; |
| | | |
| | | triggerList.Clear(); |
| | | eventList.Clear(); |
| | | transferList.Clear(); |
| | | |
| | | for (int i = 0; i < transform.childCount; ++i) |
| | | { |
| | | for (int j = transform.GetChild(i).childCount - 1; j >= 0; --j) |
| | | { |
| | | DestroyImmediate(transform.GetChild(i).GetChild(j).gameObject); |
| | | } |
| | | } |
| | | } |
| | | #endif |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: dc90d6f805d82a24a83203b93f99deba |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using System.IO; |
| | | |
| | | #if UNITY_EDITOR |
| | | using UnityEditor; |
| | | #endif |
| | | |
| | | namespace H2Engine |
| | | { |
| | | public class Bhv_MapTrigger : MonoBehaviour |
| | | { |
| | | [HideInInspector] |
| | | public int id; |
| | | [HideInInspector] |
| | | public Evt.E_EventType type = Evt.E_EventType.Enemy; |
| | | [HideInInspector] |
| | | public int prevID = -1; |
| | | [HideInInspector] |
| | | public BoxCollider boxCollider; |
| | | private bool showDetail = false; |
| | | private bool showEventList = false; |
| | | [HideInInspector] |
| | | public List<int> eventIDList = new List<int>(); |
| | | |
| | | #if UNITY_EDITOR |
| | | |
| | | public void Save(BinaryWriter bw) |
| | | { |
| | | bw.Write(id); |
| | | bw.Write((byte)type); |
| | | bw.Write(prevID); |
| | | bw.Write((float)System.Math.Round(transform.position.x, 2)); |
| | | bw.Write((float)System.Math.Round(transform.position.y, 2)); |
| | | bw.Write((float)System.Math.Round(transform.position.z, 2)); |
| | | bw.Write((float)System.Math.Round(boxCollider.size.x, 2)); |
| | | bw.Write((float)System.Math.Round(boxCollider.size.z, 2)); |
| | | bw.Write((float)System.Math.Round(transform.eulerAngles.y, 2)); |
| | | bw.Write(eventIDList.Count); |
| | | foreach (var _eventID in eventIDList) |
| | | { |
| | | bw.Write(_eventID); |
| | | } |
| | | } |
| | | |
| | | public void Export(BinaryWriter bw) |
| | | { |
| | | Save(bw); |
| | | } |
| | | |
| | | public void Load(BinaryReader br) |
| | | { |
| | | id = br.ReadInt32(); |
| | | type = (Evt.E_EventType)br.ReadByte(); |
| | | prevID = br.ReadInt32(); |
| | | float _pX = br.ReadSingle(); |
| | | float _pY = br.ReadSingle(); |
| | | float _pZ = br.ReadSingle(); |
| | | float _x = br.ReadSingle(); |
| | | float _z = br.ReadSingle(); |
| | | float _eY = br.ReadSingle(); |
| | | int _count = br.ReadInt32(); |
| | | for (int i = 0; i < _count; ++i) |
| | | { |
| | | eventIDList.Add(br.ReadInt32()); |
| | | } |
| | | transform.position = new Vector3(_pX, _pY, _pZ); |
| | | boxCollider.size = new Vector3(_x, 1, _z); |
| | | transform.eulerAngles = new Vector3(0, _eY, 0); |
| | | } |
| | | |
| | | public bool DrawUI(GUISkin guiSkin) |
| | | { |
| | | bool _result = false; |
| | | EditorGUILayout.BeginVertical(guiSkin.box); |
| | | EditorGUILayout.BeginHorizontal(GUILayout.Height(22)); |
| | | EditorGUI.indentLevel += 1; |
| | | showDetail = EditorGUILayout.Foldout(showDetail, " 触发器ID:" + id, true, guiSkin.toggle); |
| | | if (GUILayout.Button("查找", guiSkin.button, GUILayout.Width(60), GUILayout.Height(22))) |
| | | { |
| | | Selection.activeGameObject = gameObject; |
| | | if (Selection.activeGameObject) |
| | | { |
| | | SceneView.lastActiveSceneView.LookAt(Selection.activeGameObject.transform.position); |
| | | } |
| | | } |
| | | if (GUILayout.Button("删除", guiSkin.button, GUILayout.Width(60), GUILayout.Height(22))) |
| | | { |
| | | _result = true; |
| | | } |
| | | EditorGUILayout.EndHorizontal(); |
| | | if (showDetail) |
| | | { |
| | | EditorGUILayout.BeginHorizontal(GUILayout.Height(22)); |
| | | EditorGUILayout.LabelField("前置触发器ID", guiSkin.customStyles[0], GUILayout.Height(22), GUILayout.Width(80)); |
| | | prevID = EditorGUILayout.IntField(prevID, guiSkin.textField, GUILayout.Height(20)); |
| | | EditorGUILayout.EndHorizontal(); |
| | | EditorGUILayout.BeginVertical(guiSkin.customStyles[1]); |
| | | EditorGUILayout.BeginHorizontal(GUILayout.Height(22)); |
| | | showEventList = EditorGUILayout.Foldout(showEventList, " 触发事件列表", true, guiSkin.toggle); |
| | | if (GUILayout.Button("添加", guiSkin.button, GUILayout.Width(60), GUILayout.Height(22))) |
| | | { |
| | | eventIDList.Add(0); |
| | | showEventList = true; |
| | | } |
| | | EditorGUILayout.EndHorizontal(); |
| | | if (showEventList) |
| | | { |
| | | for (int i = eventIDList.Count - 1; i >= 0; --i) |
| | | { |
| | | EditorGUILayout.BeginHorizontal(guiSkin.box, GUILayout.Height(22)); |
| | | EditorGUILayout.LabelField("事件ID", guiSkin.customStyles[0], GUILayout.Height(20), GUILayout.Width(60)); |
| | | eventIDList[i] = EditorGUILayout.IntField(eventIDList[i], guiSkin.textField, GUILayout.Height(22)); |
| | | if (GUILayout.Button("删除", guiSkin.button, GUILayout.Width(60), GUILayout.Height(22))) |
| | | { |
| | | eventIDList.RemoveAt(i); |
| | | } |
| | | EditorGUILayout.EndHorizontal(); |
| | | } |
| | | } |
| | | EditorGUILayout.EndVertical(); |
| | | } |
| | | EditorGUI.indentLevel -= 1; |
| | | EditorGUILayout.EndVertical(); |
| | | |
| | | return _result; |
| | | } |
| | | #endif |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 5bac32a5b5beec741993b2c88f45f4da |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.IO; |
| | | |
| | | namespace H2Engine |
| | | { |
| | | public class Bhv_MonsterData : MonoBehaviour |
| | | { |
| | | [HideInInspector] |
| | | public int npcID; |
| | | [HideInInspector] |
| | | public byte ai; |
| | | |
| | | public void Save(BinaryWriter bw) |
| | | { |
| | | bw.Write(npcID); |
| | | bw.Write(ai); |
| | | bw.Write((float)System.Math.Round(transform.position.x)); |
| | | bw.Write((float)System.Math.Round(transform.position.y)); |
| | | bw.Write((float)System.Math.Round(transform.position.z)); |
| | | } |
| | | |
| | | public void Load(BinaryReader br) |
| | | { |
| | | npcID = br.ReadInt32(); |
| | | ai = br.ReadByte(); |
| | | float _x = br.ReadSingle(); |
| | | float _y = br.ReadSingle(); |
| | | float _z = br.ReadSingle(); |
| | | transform.position = new Vector3(_x, _y, _z); |
| | | name = npcID + "_RefreshMonster"; |
| | | } |
| | | |
| | | public void Export(BinaryWriter bw) |
| | | { |
| | | Save(bw); |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 74afc638dfa0d2b42b7e4f0b2c07cfa3 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.IO; |
| | | |
| | | namespace H2Engine |
| | | { |
| | | public class Bhv_TransferPoint : MonoBehaviour |
| | | { |
| | | [HideInInspector] |
| | | public int effectID = -1; |
| | | [HideInInspector] |
| | | public CapsuleCollider capsuleCollider; |
| | | |
| | | public void Save(BinaryWriter bw) |
| | | { |
| | | bw.Write(effectID); |
| | | bw.Write((float)System.Math.Round(transform.position.x)); |
| | | bw.Write((float)System.Math.Round(transform.position.y)); |
| | | bw.Write((float)System.Math.Round(transform.position.z)); |
| | | bw.Write((float)System.Math.Round(capsuleCollider.radius)); |
| | | } |
| | | |
| | | public void Load(BinaryReader br) |
| | | { |
| | | effectID = br.ReadInt32(); |
| | | float _x = br.ReadSingle(); |
| | | float _y = br.ReadSingle(); |
| | | float _z = br.ReadSingle(); |
| | | transform.position = new Vector3(_x, _y, _z); |
| | | float _r = br.ReadSingle(); |
| | | capsuleCollider.radius = _r; |
| | | } |
| | | |
| | | public void Export(BinaryWriter bw) |
| | | { |
| | | Save(bw); |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 0d831f11e6aad15478664877854852c1 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections.Generic; |
| | | using System.IO; |
| | | |
| | | #if UNITY_EDITOR |
| | | using UnityEditor; |
| | | #endif |
| | | |
| | | namespace H2Engine |
| | | { |
| | | public class Bhv_Trasfer : MonoBehaviour |
| | | { |
| | | [HideInInspector] |
| | | public int id; |
| | | [HideInInspector] |
| | | public MapTrasfer.E_TransferType transferType = MapTrasfer.E_TransferType.None; |
| | | [HideInInspector] |
| | | public int param; |
| | | [HideInInspector] |
| | | public List<Bhv_TransferPoint> pointList = new List<Bhv_TransferPoint>(); |
| | | private bool showDetail; |
| | | |
| | | #if UNITY_EDITOR |
| | | |
| | | public void Save(BinaryWriter bw) |
| | | { |
| | | bw.Write((byte)transferType); |
| | | bw.Write(param); |
| | | bw.Write(pointList.Count); |
| | | foreach (var _point in pointList) |
| | | { |
| | | _point.Save(bw); |
| | | } |
| | | } |
| | | |
| | | public void Export(BinaryWriter bw) |
| | | { |
| | | bw.Write((byte)transferType); |
| | | bw.Write(param); |
| | | bw.Write(pointList.Count); |
| | | foreach (var _point in pointList) |
| | | { |
| | | _point.Export(bw); |
| | | } |
| | | } |
| | | |
| | | public void Load(BinaryReader br) |
| | | { |
| | | transferType = (MapTrasfer.E_TransferType)br.ReadByte(); |
| | | param = br.ReadInt32(); |
| | | int _count = br.ReadInt32(); |
| | | for (int i = 0; i < _count; ++i) |
| | | { |
| | | var _go = new GameObject(pointList.Count + "_TransferPoint"); |
| | | _go.transform.SetParent(transform); |
| | | _go.transform.localPosition = Vector3.zero; |
| | | _go.transform.eulerAngles = Vector3.zero; |
| | | _go.transform.localScale = Vector3.one; |
| | | var _transferPoint = _go.AddComponent<Bhv_TransferPoint>(); |
| | | _transferPoint.capsuleCollider = _go.AddComponent<CapsuleCollider>(); |
| | | pointList.Add(_transferPoint); |
| | | |
| | | _transferPoint.Load(br); |
| | | } |
| | | } |
| | | |
| | | public bool DrawUI(Bhv_MapData mapData, GUISkin guiSkin) |
| | | { |
| | | bool _result = false; |
| | | EditorGUILayout.BeginVertical(guiSkin.box); |
| | | EditorGUILayout.BeginHorizontal(GUILayout.Height(20)); |
| | | EditorGUI.indentLevel += 1; |
| | | showDetail = EditorGUILayout.Foldout(showDetail, " No." + mapData.transferList.IndexOf(this), true, guiSkin.toggle); |
| | | if (GUILayout.Button("删除", guiSkin.button, GUILayout.Width(60), GUILayout.Height(20))) |
| | | { |
| | | _result = true; |
| | | } |
| | | EditorGUILayout.EndHorizontal(); |
| | | if (showDetail) |
| | | { |
| | | EditorGUILayout.BeginHorizontal(GUILayout.Height(22)); |
| | | EditorGUILayout.LabelField("类型", guiSkin.customStyles[0], GUILayout.Height(20), GUILayout.Width(40)); |
| | | transferType = (MapTrasfer.E_TransferType)EditorGUILayout.EnumPopup(transferType, guiSkin.box, GUILayout.Height(20)); |
| | | EditorGUILayout.EndHorizontal(); |
| | | if (transferType == MapTrasfer.E_TransferType.Other) |
| | | { |
| | | EditorGUILayout.BeginHorizontal(GUILayout.Height(22)); |
| | | EditorGUILayout.LabelField("MapID", guiSkin.customStyles[0], GUILayout.Height(20), GUILayout.Width(40)); |
| | | param = EditorGUILayout.IntField(param, guiSkin.textField, GUILayout.Height(20)); |
| | | EditorGUILayout.EndHorizontal(); |
| | | } |
| | | |
| | | EditorGUILayout.BeginVertical(guiSkin.customStyles[1]); |
| | | |
| | | EditorGUILayout.BeginHorizontal(GUILayout.Height(22)); |
| | | EditorGUILayout.LabelField("传送点列表", guiSkin.customStyles[0], GUILayout.Height(20)); |
| | | if (GUILayout.Button("添加", guiSkin.button, GUILayout.Width(60), GUILayout.Height(20))) |
| | | { |
| | | var _go = new GameObject(pointList.Count + "_TransferPoint"); |
| | | _go.transform.SetParent(transform); |
| | | _go.transform.localPosition = Vector3.zero; |
| | | _go.transform.eulerAngles = Vector3.zero; |
| | | _go.transform.localScale = Vector3.one; |
| | | var _transferPoint = _go.AddComponent<Bhv_TransferPoint>(); |
| | | _transferPoint.capsuleCollider = _go.AddComponent<CapsuleCollider>(); |
| | | pointList.Add(_transferPoint); |
| | | } |
| | | EditorGUILayout.EndHorizontal(); |
| | | if (pointList.Count > 0) |
| | | { |
| | | for (int i = pointList.Count - 1; i >= 0; --i) |
| | | { |
| | | if (pointList[i] == null) |
| | | { |
| | | pointList.RemoveAt(i); |
| | | continue; |
| | | } |
| | | EditorGUILayout.BeginHorizontal(guiSkin.box, GUILayout.Height(22)); |
| | | EditorGUILayout.LabelField("[" + (i + 1) + "]", guiSkin.customStyles[0], GUILayout.Height(20), GUILayout.Width(40)); |
| | | EditorGUILayout.LabelField("特效ID", guiSkin.customStyles[0], GUILayout.Height(20), GUILayout.Width(40)); |
| | | pointList[i].effectID = EditorGUILayout.IntField(pointList[i].effectID, guiSkin.textField, GUILayout.Height(20)); |
| | | if (GUILayout.Button("定高", guiSkin.button, GUILayout.Width(60), GUILayout.Height(20))) |
| | | { |
| | | Vector3 _pos = pointList[i].transform.position; |
| | | _pos.y = 0; |
| | | RaycastHit _hit; |
| | | |
| | | Ray _ray = new Ray(_pos + Vector3.up * 100, Vector3.down); |
| | | if (Physics.Raycast(_ray, out _hit, 200, 1 << LayerMask.NameToLayer("Walkable"))) |
| | | { |
| | | pointList[i].transform.position = _hit.point; |
| | | } |
| | | } |
| | | if (GUILayout.Button("查找", guiSkin.button, GUILayout.Width(60), GUILayout.Height(20))) |
| | | { |
| | | Selection.activeGameObject = pointList[i].gameObject; |
| | | if (Selection.activeGameObject) |
| | | { |
| | | SceneView.lastActiveSceneView.LookAt(Selection.activeGameObject.transform.position); |
| | | } |
| | | } |
| | | if (GUILayout.Button("删除", guiSkin.button, GUILayout.Width(60), GUILayout.Height(20))) |
| | | { |
| | | DestroyImmediate(pointList[i].gameObject); |
| | | pointList.RemoveAt(i); |
| | | } |
| | | EditorGUILayout.EndHorizontal(); |
| | | } |
| | | } |
| | | EditorGUILayout.EndVertical(); |
| | | } |
| | | |
| | | EditorGUI.indentLevel -= 1; |
| | | EditorGUILayout.EndVertical(); |
| | | return _result; |
| | | } |
| | | #endif |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 88dd76332d137b74d8602981120d28af |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: e56a787a1268b094095d54b1de99d288 |
| | | folderAsset: yes |
| | | DefaultImporter: |
| | | externalObjects: {} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: fe4bd498013ad644e942356fbf3ec201 |
| | | folderAsset: yes |
| | | DefaultImporter: |
| | | externalObjects: {} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using System.IO; |
| | | |
| | | namespace H2Engine |
| | | { |
| | | [System.Serializable] |
| | | public class Evt |
| | | { |
| | | public enum E_EventType |
| | | { |
| | | Enemy |
| | | } |
| | | |
| | | public int id; |
| | | |
| | | public E_EventType type; |
| | | |
| | | public virtual void Load(BinaryReader br) |
| | | { |
| | | id = br.ReadInt32(); |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: fab56c4da5511ec439e595f422819588 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using System.IO; |
| | | |
| | | namespace H2Engine |
| | | { |
| | | [System.Serializable] |
| | | public class Evt_RefreshMonster : Evt |
| | | { |
| | | public enum E_OverCondition |
| | | { |
| | | None, |
| | | DeadCount, |
| | | Time, |
| | | } |
| | | |
| | | public enum E_RefreshType |
| | | { |
| | | All, |
| | | OneByOneTime,// 根据时间刷新 |
| | | OneByOnePrevDie,// 前一只刷出已死亡 |
| | | } |
| | | |
| | | public MonsterData[] monsters; |
| | | public E_OverCondition overCondition = E_OverCondition.None; |
| | | public E_RefreshType refreshType = E_RefreshType.All; |
| | | /// <summary> |
| | | /// 参数 |
| | | /// <para>当使用OverCondition类型为DeadCount的时候为个数</para> |
| | | /// <para>当使用OverCondition类型为Time的时候为时间(毫秒)</para> |
| | | /// </summary> |
| | | public int conditionParam; |
| | | /// <summary> |
| | | /// 刷新参数 |
| | | /// <para>刷新类型: OneByOneTime, 作为时间(毫秒)</para> |
| | | /// </summary> |
| | | public int refreshParam; |
| | | |
| | | public override void Load(BinaryReader br) |
| | | { |
| | | base.Load(br); |
| | | overCondition = (Evt_RefreshMonster.E_OverCondition)br.ReadByte(); |
| | | refreshType = (Evt_RefreshMonster.E_RefreshType)br.ReadByte(); |
| | | refreshParam = br.ReadInt32(); |
| | | conditionParam = br.ReadInt32(); |
| | | int _count = br.ReadInt32(); |
| | | monsters = new MonsterData[_count]; |
| | | for (int i = 0; i < _count; ++i) |
| | | { |
| | | monsters[i] = new MonsterData(); |
| | | monsters[i].Load(br); |
| | | } |
| | | } |
| | | |
| | | /* |
| | | float delay = Time.now |
| | | float interval |
| | | int index |
| | | |
| | | update |
| | | if refreshType == all |
| | | for index = 0; index < monsters.Length; ++index |
| | | doRefresh(monsters[index]); |
| | | else if refreshType == onebyoneTime |
| | | if Time.now - delay > interval |
| | | doRefresh(monster[index]); |
| | | index++; |
| | | delay = Time.now; |
| | | else if refreshType == onebyoneDie |
| | | if prevNpc.isDie |
| | | prevNpc = doRefresh(monster[index]); |
| | | index++; |
| | | |
| | | int deadCount |
| | | float overTime = conditionParam * 0.001f; |
| | | float timePast = Time.now |
| | | |
| | | over |
| | | if condition == None |
| | | return true; |
| | | else if condition == DeadCount |
| | | return deadCount > monsters.Length || deadCount > conditionParam; |
| | | else if condition == Time |
| | | return Time.now - timePast >= overTime; |
| | | */ |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: d5b73b47c82904a45965261e4e2ab644 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.IO; |
| | | |
| | | namespace H2Engine |
| | | { |
| | | [System.Serializable] |
| | | public class MonsterData |
| | | { |
| | | public int npcID; |
| | | public Vector3 position; |
| | | public int ai; |
| | | |
| | | public void Load(BinaryReader br) |
| | | { |
| | | npcID = br.ReadInt32(); |
| | | ai = br.ReadByte(); |
| | | float _x = br.ReadSingle(); |
| | | float _y = br.ReadSingle(); |
| | | float _z = br.ReadSingle(); |
| | | position = new Vector3(_x, _y, _z); |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: fe4b1c68c1bbb2548b31ee3fc81227e9 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.IO; |
| | | using System.Collections.Generic; |
| | | |
| | | namespace H2Engine |
| | | { |
| | | [System.Serializable] |
| | | public class MapData |
| | | { |
| | | public int id; |
| | | public MapTrigger[] triggers; |
| | | public Dictionary<int, Evt> eventDict = new Dictionary<int, Evt>(); |
| | | public MapTrasfer[] transfers; |
| | | |
| | | public static MapData LoadFormFile(string fileName) |
| | | { |
| | | string _path = null; |
| | | if (AssetSource.refdataFromEditor) |
| | | { |
| | | _path = ResourcesPath.ResourcesOutPath + "Refdata/MapData/" + fileName + ".gd"; |
| | | } |
| | | else |
| | | { |
| | | _path = AssetVersionUtility.GetAssetFilePath(StringUtility.Contact("mapdata/", fileName, ".gd")); |
| | | } |
| | | MapData _mapData = null; |
| | | if (File.Exists(_path)) |
| | | { |
| | | using (var _fileStream = File.OpenRead(_path)) |
| | | { |
| | | using (var _br = new BinaryReader(_fileStream)) |
| | | { |
| | | _mapData = new MapData(); |
| | | _mapData.Load(_br); |
| | | } |
| | | } |
| | | } |
| | | return _mapData; |
| | | } |
| | | |
| | | public void Load(BinaryReader br) |
| | | { |
| | | id = br.ReadInt32(); |
| | | int _count = br.ReadInt32(); |
| | | triggers = new MapTrigger[_count]; |
| | | for (int i = 0; i < _count; ++i) |
| | | { |
| | | triggers[i] = new MapTrigger(); |
| | | triggers[i].Load(br); |
| | | } |
| | | _count = br.ReadInt32(); |
| | | for (int i = 0; i < _count; ++i) |
| | | { |
| | | var _type = (Evt.E_EventType)br.ReadByte(); |
| | | Evt _event = null; |
| | | if (_type == Evt.E_EventType.Enemy) |
| | | { |
| | | _event = new Evt_RefreshMonster(); |
| | | } |
| | | if (_event != null) |
| | | { |
| | | _event.Load(br); |
| | | eventDict[_event.id] = _event; |
| | | } |
| | | } |
| | | _count = br.ReadInt32(); |
| | | transfers = new MapTrasfer[_count]; |
| | | for (int i = 0; i < _count; ++i) |
| | | { |
| | | transfers[i] = new MapTrasfer(); |
| | | transfers[i].Load(br); |
| | | } |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: f75edd0d82af12043ae3ad0b00caf91f |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.IO; |
| | | |
| | | namespace H2Engine |
| | | { |
| | | [System.Serializable] |
| | | public class MapTrigger |
| | | { |
| | | public Evt.E_EventType type; |
| | | public int prevID; |
| | | public int id; |
| | | public int[] evevntIDs; |
| | | public Vector3 position; |
| | | public float rotationY; |
| | | public Vector3 size; |
| | | |
| | | public void Load(BinaryReader br) |
| | | { |
| | | id = br.ReadInt32(); |
| | | type = (Evt.E_EventType)br.ReadByte(); |
| | | prevID = br.ReadInt32(); |
| | | float _pX = br.ReadSingle(); |
| | | float _pY = br.ReadSingle(); |
| | | float _pZ = br.ReadSingle(); |
| | | float _x = br.ReadSingle(); |
| | | float _z = br.ReadSingle(); |
| | | float _eY = br.ReadSingle(); |
| | | int _count = br.ReadInt32(); |
| | | evevntIDs = new int[_count]; |
| | | for (int i = 0; i < _count; ++i) |
| | | { |
| | | evevntIDs[i] = br.ReadInt32(); |
| | | } |
| | | position = new Vector3(_pX, _pY, _pZ); |
| | | size = new Vector3(_x, 1, _z); |
| | | rotationY = _eY; |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 73e3f521830f9854bad41fef4ad96f15 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a69b49b0350da7846baa3c669009d8af |
| | | folderAsset: yes |
| | | DefaultImporter: |
| | | externalObjects: {} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.IO; |
| | | |
| | | namespace H2Engine |
| | | { |
| | | [System.Serializable] |
| | | public class MapTransferPoint |
| | | { |
| | | public int effectID; |
| | | public float radius; |
| | | public Vector3 position; |
| | | |
| | | public void Load(BinaryReader br) |
| | | { |
| | | effectID = br.ReadInt32(); |
| | | float _x = br.ReadSingle(); |
| | | float _y = br.ReadSingle(); |
| | | float _z = br.ReadSingle(); |
| | | position = new Vector3(_x, _y, _z); |
| | | float _r = br.ReadSingle(); |
| | | radius = _r; |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a08607a0e6ea4ad4997da27d036e9059 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using System.IO; |
| | | |
| | | namespace H2Engine |
| | | { |
| | | [System.Serializable] |
| | | public class MapTrasfer |
| | | { |
| | | public int id; |
| | | public enum E_TransferType |
| | | { |
| | | None, |
| | | Current, |
| | | Other, |
| | | } |
| | | public E_TransferType transferType; |
| | | public int param; |
| | | public MapTransferPoint[] transferPoints; |
| | | |
| | | public void Load(BinaryReader br) |
| | | { |
| | | transferType = (MapTrasfer.E_TransferType)br.ReadByte(); |
| | | param = br.ReadInt32(); |
| | | int _count = br.ReadInt32(); |
| | | transferPoints = new MapTransferPoint[_count]; |
| | | for (int i = 0; i < _count; ++i) |
| | | { |
| | | transferPoints[i] = new MapTransferPoint(); |
| | | transferPoints[i].Load(br); |
| | | } |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 548fffb2921aaba4b96139b1976f7ba7 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 6c3fdea6dbf8f6c44b0b1f941f63c7c0 |
| | | folderAsset: yes |
| | | DefaultImporter: |
| | | externalObjects: {} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 5607bcbf23a156943a0e0162e30605c8 |
| | | folderAsset: yes |
| | | DefaultImporter: |
| | | externalObjects: {} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | %YAML 1.1 |
| | | %TAG !u! tag:unity3d.com,2011: |
| | | --- !u!114 &11400000 |
| | | MonoBehaviour: |
| | | m_ObjectHideFlags: 0 |
| | | m_CorrespondingSourceObject: {fileID: 0} |
| | | m_PrefabInternal: {fileID: 0} |
| | | m_GameObject: {fileID: 0} |
| | | m_Enabled: 1 |
| | | m_EditorHideFlags: 1 |
| | | m_Script: {fileID: 12001, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_Name: EditorSkin |
| | | m_EditorClassIdentifier: |
| | | m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_box: |
| | | m_Name: box |
| | | m_Normal: |
| | | m_Background: {fileID: 11001, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0.79999995, g: 0.79999995, b: 0.79999995, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 6 |
| | | m_Right: 6 |
| | | m_Top: 6 |
| | | m_Bottom: 6 |
| | | m_Margin: |
| | | m_Left: 4 |
| | | m_Right: 4 |
| | | m_Top: 4 |
| | | m_Bottom: 4 |
| | | m_Padding: |
| | | m_Left: 4 |
| | | m_Right: 4 |
| | | m_Top: 4 |
| | | m_Bottom: 4 |
| | | m_Overflow: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 0 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 1 |
| | | m_WordWrap: 0 |
| | | m_RichText: 1 |
| | | m_TextClipping: 1 |
| | | m_ImagePosition: 0 |
| | | m_ContentOffset: {x: 0, y: 0} |
| | | m_FixedWidth: 0 |
| | | m_FixedHeight: 0 |
| | | m_StretchWidth: 1 |
| | | m_StretchHeight: 0 |
| | | m_button: |
| | | m_Name: button |
| | | m_Normal: |
| | | m_Background: {fileID: 11006, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0.9, g: 0.9, b: 0.9, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 11003, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 1, g: 1, b: 1, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 11002, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0.9, g: 0.9, b: 0.9, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 1, g: 1, b: 1, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 11005, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0.9019608, g: 0.9019608, b: 0.9019608, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 11004, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 1, g: 1, b: 1, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 11002, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0.9, g: 0.9, b: 0.9, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 6 |
| | | m_Right: 6 |
| | | m_Top: 6 |
| | | m_Bottom: 4 |
| | | m_Margin: |
| | | m_Left: 4 |
| | | m_Right: 4 |
| | | m_Top: 4 |
| | | m_Bottom: 4 |
| | | m_Padding: |
| | | m_Left: 6 |
| | | m_Right: 6 |
| | | m_Top: 3 |
| | | m_Bottom: 3 |
| | | m_Overflow: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 0 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 4 |
| | | m_WordWrap: 0 |
| | | m_RichText: 1 |
| | | m_TextClipping: 1 |
| | | m_ImagePosition: 0 |
| | | m_ContentOffset: {x: 0, y: 0} |
| | | m_FixedWidth: 0 |
| | | m_FixedHeight: 0 |
| | | m_StretchWidth: 1 |
| | | m_StretchHeight: 0 |
| | | m_toggle: |
| | | m_Name: toggle |
| | | m_Normal: |
| | | m_Background: {fileID: 11018, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0.89112896, g: 0.89112896, b: 0.89112896, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 11014, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 1, g: 1, b: 1, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 11013, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 1, g: 1, b: 1, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 11016, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0.8901961, g: 0.8901961, b: 0.8901961, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 11015, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 1, g: 1, b: 1, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 11017, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 1, g: 1, b: 1, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 14 |
| | | m_Right: 0 |
| | | m_Top: 14 |
| | | m_Bottom: 0 |
| | | m_Margin: |
| | | m_Left: 4 |
| | | m_Right: 4 |
| | | m_Top: 4 |
| | | m_Bottom: 4 |
| | | m_Padding: |
| | | m_Left: 15 |
| | | m_Right: 0 |
| | | m_Top: 3 |
| | | m_Bottom: 0 |
| | | m_Overflow: |
| | | m_Left: -1 |
| | | m_Right: 0 |
| | | m_Top: -4 |
| | | m_Bottom: 0 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 12 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 0 |
| | | m_WordWrap: 0 |
| | | m_RichText: 1 |
| | | m_TextClipping: 1 |
| | | m_ImagePosition: 0 |
| | | m_ContentOffset: {x: 0, y: 0} |
| | | m_FixedWidth: 0 |
| | | m_FixedHeight: 0 |
| | | m_StretchWidth: 1 |
| | | m_StretchHeight: 0 |
| | | m_label: |
| | | m_Name: label |
| | | m_Normal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0.9, g: 0.9, b: 0.9, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Margin: |
| | | m_Left: 4 |
| | | m_Right: 4 |
| | | m_Top: 4 |
| | | m_Bottom: 4 |
| | | m_Padding: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 3 |
| | | m_Bottom: 3 |
| | | m_Overflow: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 0 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 0 |
| | | m_WordWrap: 1 |
| | | m_RichText: 1 |
| | | m_TextClipping: 1 |
| | | m_ImagePosition: 0 |
| | | m_ContentOffset: {x: 0, y: 0} |
| | | m_FixedWidth: 0 |
| | | m_FixedHeight: 0 |
| | | m_StretchWidth: 1 |
| | | m_StretchHeight: 0 |
| | | m_textField: |
| | | m_Name: textfield |
| | | m_Normal: |
| | | m_Background: {fileID: 11024, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0.79999995, g: 0.79999995, b: 0.79999995, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 11026, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0.9, g: 0.9, b: 0.9, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 11026, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 1, g: 1, b: 1, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 11025, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 1, g: 1, b: 1, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 4 |
| | | m_Right: 4 |
| | | m_Top: 4 |
| | | m_Bottom: 4 |
| | | m_Margin: |
| | | m_Left: 4 |
| | | m_Right: 4 |
| | | m_Top: 4 |
| | | m_Bottom: 4 |
| | | m_Padding: |
| | | m_Left: 3 |
| | | m_Right: 3 |
| | | m_Top: 3 |
| | | m_Bottom: 3 |
| | | m_Overflow: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 0 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 0 |
| | | m_WordWrap: 0 |
| | | m_RichText: 0 |
| | | m_TextClipping: 1 |
| | | m_ImagePosition: 3 |
| | | m_ContentOffset: {x: 0, y: 0} |
| | | m_FixedWidth: 0 |
| | | m_FixedHeight: 0 |
| | | m_StretchWidth: 1 |
| | | m_StretchHeight: 0 |
| | | m_textArea: |
| | | m_Name: textarea |
| | | m_Normal: |
| | | m_Background: {fileID: 11024, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0.9019608, g: 0.9019608, b: 0.9019608, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 11026, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0.79999995, g: 0.79999995, b: 0.79999995, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 11025, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 1, g: 1, b: 1, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 4 |
| | | m_Right: 4 |
| | | m_Top: 4 |
| | | m_Bottom: 4 |
| | | m_Margin: |
| | | m_Left: 4 |
| | | m_Right: 4 |
| | | m_Top: 4 |
| | | m_Bottom: 4 |
| | | m_Padding: |
| | | m_Left: 3 |
| | | m_Right: 3 |
| | | m_Top: 3 |
| | | m_Bottom: 3 |
| | | m_Overflow: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 0 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 0 |
| | | m_WordWrap: 1 |
| | | m_RichText: 0 |
| | | m_TextClipping: 1 |
| | | m_ImagePosition: 0 |
| | | m_ContentOffset: {x: 0, y: 0} |
| | | m_FixedWidth: 0 |
| | | m_FixedHeight: 0 |
| | | m_StretchWidth: 1 |
| | | m_StretchHeight: 0 |
| | | m_window: |
| | | m_Name: window |
| | | m_Normal: |
| | | m_Background: {fileID: 11023, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 1, g: 1, b: 1, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 11022, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 1, g: 1, b: 1, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 8 |
| | | m_Right: 8 |
| | | m_Top: 18 |
| | | m_Bottom: 8 |
| | | m_Margin: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Padding: |
| | | m_Left: 10 |
| | | m_Right: 10 |
| | | m_Top: 20 |
| | | m_Bottom: 10 |
| | | m_Overflow: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 0 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 1 |
| | | m_WordWrap: 0 |
| | | m_RichText: 1 |
| | | m_TextClipping: 1 |
| | | m_ImagePosition: 0 |
| | | m_ContentOffset: {x: 0, y: -18} |
| | | m_FixedWidth: 0 |
| | | m_FixedHeight: 0 |
| | | m_StretchWidth: 1 |
| | | m_StretchHeight: 0 |
| | | m_horizontalSlider: |
| | | m_Name: horizontalslider |
| | | m_Normal: |
| | | m_Background: {fileID: 11009, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 3 |
| | | m_Right: 3 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Margin: |
| | | m_Left: 4 |
| | | m_Right: 4 |
| | | m_Top: 4 |
| | | m_Bottom: 4 |
| | | m_Padding: |
| | | m_Left: -1 |
| | | m_Right: -1 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Overflow: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: -2 |
| | | m_Bottom: -3 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 0 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 0 |
| | | m_WordWrap: 0 |
| | | m_RichText: 1 |
| | | m_TextClipping: 1 |
| | | m_ImagePosition: 2 |
| | | m_ContentOffset: {x: 0, y: 0} |
| | | m_FixedWidth: 0 |
| | | m_FixedHeight: 12 |
| | | m_StretchWidth: 1 |
| | | m_StretchHeight: 0 |
| | | m_horizontalSliderThumb: |
| | | m_Name: horizontalsliderthumb |
| | | m_Normal: |
| | | m_Background: {fileID: 11011, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 11012, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 11010, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 4 |
| | | m_Right: 4 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Margin: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Padding: |
| | | m_Left: 7 |
| | | m_Right: 7 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Overflow: |
| | | m_Left: -1 |
| | | m_Right: -1 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 0 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 0 |
| | | m_WordWrap: 0 |
| | | m_RichText: 1 |
| | | m_TextClipping: 1 |
| | | m_ImagePosition: 2 |
| | | m_ContentOffset: {x: 0, y: 0} |
| | | m_FixedWidth: 0 |
| | | m_FixedHeight: 12 |
| | | m_StretchWidth: 1 |
| | | m_StretchHeight: 0 |
| | | m_verticalSlider: |
| | | m_Name: verticalslider |
| | | m_Normal: |
| | | m_Background: {fileID: 11021, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 3 |
| | | m_Bottom: 3 |
| | | m_Margin: |
| | | m_Left: 4 |
| | | m_Right: 4 |
| | | m_Top: 4 |
| | | m_Bottom: 4 |
| | | m_Padding: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: -1 |
| | | m_Bottom: -1 |
| | | m_Overflow: |
| | | m_Left: -2 |
| | | m_Right: -3 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 0 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 0 |
| | | m_WordWrap: 0 |
| | | m_RichText: 1 |
| | | m_TextClipping: 0 |
| | | m_ImagePosition: 0 |
| | | m_ContentOffset: {x: 0, y: 0} |
| | | m_FixedWidth: 12 |
| | | m_FixedHeight: 0 |
| | | m_StretchWidth: 0 |
| | | m_StretchHeight: 1 |
| | | m_verticalSliderThumb: |
| | | m_Name: verticalsliderthumb |
| | | m_Normal: |
| | | m_Background: {fileID: 11011, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 11012, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 11010, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Margin: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Padding: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 7 |
| | | m_Bottom: 7 |
| | | m_Overflow: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: -1 |
| | | m_Bottom: -1 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 0 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 0 |
| | | m_WordWrap: 0 |
| | | m_RichText: 1 |
| | | m_TextClipping: 1 |
| | | m_ImagePosition: 0 |
| | | m_ContentOffset: {x: 0, y: 0} |
| | | m_FixedWidth: 12 |
| | | m_FixedHeight: 0 |
| | | m_StretchWidth: 0 |
| | | m_StretchHeight: 1 |
| | | m_horizontalScrollbar: |
| | | m_Name: horizontalscrollbar |
| | | m_Normal: |
| | | m_Background: {fileID: 11008, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 9 |
| | | m_Right: 9 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Margin: |
| | | m_Left: 4 |
| | | m_Right: 4 |
| | | m_Top: 1 |
| | | m_Bottom: 4 |
| | | m_Padding: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Overflow: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 0 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 0 |
| | | m_WordWrap: 0 |
| | | m_RichText: 1 |
| | | m_TextClipping: 1 |
| | | m_ImagePosition: 2 |
| | | m_ContentOffset: {x: 0, y: 0} |
| | | m_FixedWidth: 0 |
| | | m_FixedHeight: 15 |
| | | m_StretchWidth: 1 |
| | | m_StretchHeight: 0 |
| | | m_horizontalScrollbarThumb: |
| | | m_Name: horizontalscrollbarthumb |
| | | m_Normal: |
| | | m_Background: {fileID: 11007, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 6 |
| | | m_Right: 6 |
| | | m_Top: 6 |
| | | m_Bottom: 6 |
| | | m_Margin: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Padding: |
| | | m_Left: 6 |
| | | m_Right: 6 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Overflow: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: -1 |
| | | m_Bottom: 1 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 0 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 0 |
| | | m_WordWrap: 0 |
| | | m_RichText: 1 |
| | | m_TextClipping: 1 |
| | | m_ImagePosition: 0 |
| | | m_ContentOffset: {x: 0, y: 0} |
| | | m_FixedWidth: 0 |
| | | m_FixedHeight: 13 |
| | | m_StretchWidth: 1 |
| | | m_StretchHeight: 0 |
| | | m_horizontalScrollbarLeftButton: |
| | | m_Name: horizontalscrollbarleftbutton |
| | | m_Normal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Margin: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Padding: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Overflow: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 0 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 0 |
| | | m_WordWrap: 0 |
| | | m_RichText: 1 |
| | | m_TextClipping: 1 |
| | | m_ImagePosition: 0 |
| | | m_ContentOffset: {x: 0, y: 0} |
| | | m_FixedWidth: 0 |
| | | m_FixedHeight: 0 |
| | | m_StretchWidth: 1 |
| | | m_StretchHeight: 0 |
| | | m_horizontalScrollbarRightButton: |
| | | m_Name: horizontalscrollbarrightbutton |
| | | m_Normal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Margin: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Padding: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Overflow: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 0 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 0 |
| | | m_WordWrap: 0 |
| | | m_RichText: 1 |
| | | m_TextClipping: 1 |
| | | m_ImagePosition: 0 |
| | | m_ContentOffset: {x: 0, y: 0} |
| | | m_FixedWidth: 0 |
| | | m_FixedHeight: 0 |
| | | m_StretchWidth: 1 |
| | | m_StretchHeight: 0 |
| | | m_verticalScrollbar: |
| | | m_Name: verticalscrollbar |
| | | m_Normal: |
| | | m_Background: {fileID: 11020, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 9 |
| | | m_Bottom: 9 |
| | | m_Margin: |
| | | m_Left: 1 |
| | | m_Right: 4 |
| | | m_Top: 4 |
| | | m_Bottom: 4 |
| | | m_Padding: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 1 |
| | | m_Bottom: 1 |
| | | m_Overflow: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 0 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 0 |
| | | m_WordWrap: 0 |
| | | m_RichText: 1 |
| | | m_TextClipping: 1 |
| | | m_ImagePosition: 0 |
| | | m_ContentOffset: {x: 0, y: 0} |
| | | m_FixedWidth: 15 |
| | | m_FixedHeight: 0 |
| | | m_StretchWidth: 1 |
| | | m_StretchHeight: 0 |
| | | m_verticalScrollbarThumb: |
| | | m_Name: verticalscrollbarthumb |
| | | m_Normal: |
| | | m_Background: {fileID: 11019, guid: 0000000000000000e000000000000000, type: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 6 |
| | | m_Right: 6 |
| | | m_Top: 6 |
| | | m_Bottom: 6 |
| | | m_Margin: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Padding: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 6 |
| | | m_Bottom: 6 |
| | | m_Overflow: |
| | | m_Left: -1 |
| | | m_Right: -1 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 0 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 0 |
| | | m_WordWrap: 0 |
| | | m_RichText: 1 |
| | | m_TextClipping: 1 |
| | | m_ImagePosition: 2 |
| | | m_ContentOffset: {x: 0, y: 0} |
| | | m_FixedWidth: 15 |
| | | m_FixedHeight: 0 |
| | | m_StretchWidth: 0 |
| | | m_StretchHeight: 1 |
| | | m_verticalScrollbarUpButton: |
| | | m_Name: verticalscrollbarupbutton |
| | | m_Normal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Margin: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Padding: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Overflow: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 0 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 0 |
| | | m_WordWrap: 0 |
| | | m_RichText: 1 |
| | | m_TextClipping: 1 |
| | | m_ImagePosition: 0 |
| | | m_ContentOffset: {x: 0, y: 0} |
| | | m_FixedWidth: 0 |
| | | m_FixedHeight: 0 |
| | | m_StretchWidth: 1 |
| | | m_StretchHeight: 0 |
| | | m_verticalScrollbarDownButton: |
| | | m_Name: verticalscrollbardownbutton |
| | | m_Normal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Margin: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Padding: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Overflow: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 0 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 0 |
| | | m_WordWrap: 0 |
| | | m_RichText: 1 |
| | | m_TextClipping: 1 |
| | | m_ImagePosition: 0 |
| | | m_ContentOffset: {x: 0, y: 0} |
| | | m_FixedWidth: 0 |
| | | m_FixedHeight: 0 |
| | | m_StretchWidth: 1 |
| | | m_StretchHeight: 0 |
| | | m_ScrollView: |
| | | m_Name: scrollview |
| | | m_Normal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Margin: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Padding: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Overflow: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 0 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 0 |
| | | m_WordWrap: 0 |
| | | m_RichText: 1 |
| | | m_TextClipping: 1 |
| | | m_ImagePosition: 0 |
| | | m_ContentOffset: {x: 0, y: 0} |
| | | m_FixedWidth: 0 |
| | | m_FixedHeight: 0 |
| | | m_StretchWidth: 1 |
| | | m_StretchHeight: 0 |
| | | m_CustomStyles: |
| | | - m_Name: label_12 |
| | | m_Normal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 1, g: 1, b: 1, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Margin: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Padding: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Overflow: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 12 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 4 |
| | | m_WordWrap: 0 |
| | | m_RichText: 1 |
| | | m_TextClipping: 0 |
| | | m_ImagePosition: 0 |
| | | m_ContentOffset: {x: 0, y: 0} |
| | | m_FixedWidth: 0 |
| | | m_FixedHeight: 0 |
| | | m_StretchWidth: 1 |
| | | m_StretchHeight: 0 |
| | | - m_Name: box_gray |
| | | m_Normal: |
| | | m_Background: {fileID: 2800000, guid: 974bc19b782e5c241897a5476ecbbe36, type: 3} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 1, g: 1, b: 1, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 6 |
| | | m_Right: 6 |
| | | m_Top: 6 |
| | | m_Bottom: 6 |
| | | m_Margin: |
| | | m_Left: 4 |
| | | m_Right: 4 |
| | | m_Top: 4 |
| | | m_Bottom: 4 |
| | | m_Padding: |
| | | m_Left: 4 |
| | | m_Right: 4 |
| | | m_Top: 4 |
| | | m_Bottom: 4 |
| | | m_Overflow: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 0 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 4 |
| | | m_WordWrap: 0 |
| | | m_RichText: 1 |
| | | m_TextClipping: 0 |
| | | m_ImagePosition: 0 |
| | | m_ContentOffset: {x: 0, y: 0} |
| | | m_FixedWidth: 0 |
| | | m_FixedHeight: 0 |
| | | m_StretchWidth: 1 |
| | | m_StretchHeight: 0 |
| | | - m_Name: label_11 |
| | | m_Normal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 1, g: 1, b: 1, a: 1} |
| | | m_Hover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Active: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Focused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnNormal: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnHover: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnActive: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_OnFocused: |
| | | m_Background: {fileID: 0} |
| | | m_ScaledBackgrounds: [] |
| | | m_TextColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_Border: |
| | | m_Left: 6 |
| | | m_Right: 6 |
| | | m_Top: 6 |
| | | m_Bottom: 6 |
| | | m_Margin: |
| | | m_Left: 4 |
| | | m_Right: 4 |
| | | m_Top: 4 |
| | | m_Bottom: 4 |
| | | m_Padding: |
| | | m_Left: 4 |
| | | m_Right: 4 |
| | | m_Top: 4 |
| | | m_Bottom: 4 |
| | | m_Overflow: |
| | | m_Left: 0 |
| | | m_Right: 0 |
| | | m_Top: 0 |
| | | m_Bottom: 0 |
| | | m_Font: {fileID: 0} |
| | | m_FontSize: 11 |
| | | m_FontStyle: 0 |
| | | m_Alignment: 4 |
| | | m_WordWrap: 0 |
| | | m_RichText: 1 |
| | | m_TextClipping: 0 |
| | | m_ImagePosition: 0 |
| | | m_ContentOffset: {x: 0, y: 0} |
| | | m_FixedWidth: 0 |
| | | m_FixedHeight: 0 |
| | | m_StretchWidth: 1 |
| | | m_StretchHeight: 0 |
| | | m_Settings: |
| | | m_DoubleClickSelectsWord: 1 |
| | | m_TripleClickSelectsLine: 1 |
| | | m_CursorColor: {r: 1, g: 1, b: 1, a: 1} |
| | | m_CursorFlashSpeed: -1 |
| | | m_SelectionColor: {r: 1, g: 0.38403907, b: 0, a: 0.7} |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 62a8bf0ea5371314fa045af4833ad1f1 |
| | | NativeFormatImporter: |
| | | externalObjects: {} |
| | | mainObjectFileID: 11400000 |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 974bc19b782e5c241897a5476ecbbe36 |
| | | TextureImporter: |
| | | fileIDToRecycleName: {} |
| | | externalObjects: {} |
| | | serializedVersion: 7 |
| | | mipmaps: |
| | | mipMapMode: 0 |
| | | enableMipMap: 1 |
| | | sRGBTexture: 1 |
| | | linearTexture: 0 |
| | | fadeOut: 0 |
| | | borderMipMap: 0 |
| | | mipMapsPreserveCoverage: 0 |
| | | alphaTestReferenceValue: 0.5 |
| | | mipMapFadeDistanceStart: 1 |
| | | mipMapFadeDistanceEnd: 3 |
| | | bumpmap: |
| | | convertToNormalMap: 0 |
| | | externalNormalMap: 0 |
| | | heightScale: 0.25 |
| | | normalMapFilter: 0 |
| | | isReadable: 0 |
| | | streamingMipmaps: 0 |
| | | streamingMipmapsPriority: 0 |
| | | grayScaleToAlpha: 0 |
| | | generateCubemap: 6 |
| | | cubemapConvolution: 0 |
| | | seamlessCubemap: 0 |
| | | textureFormat: 1 |
| | | maxTextureSize: 2048 |
| | | textureSettings: |
| | | serializedVersion: 2 |
| | | filterMode: -1 |
| | | aniso: -1 |
| | | mipBias: -100 |
| | | wrapU: -1 |
| | | wrapV: -1 |
| | | wrapW: -1 |
| | | nPOTScale: 1 |
| | | lightmap: 0 |
| | | compressionQuality: 50 |
| | | spriteMode: 0 |
| | | spriteExtrude: 1 |
| | | spriteMeshType: 1 |
| | | alignment: 0 |
| | | spritePivot: {x: 0.5, y: 0.5} |
| | | spritePixelsToUnits: 100 |
| | | spriteBorder: {x: 0, y: 0, z: 0, w: 0} |
| | | spriteGenerateFallbackPhysicsShape: 1 |
| | | alphaUsage: 1 |
| | | alphaIsTransparency: 0 |
| | | spriteTessellationDetail: -1 |
| | | textureType: 0 |
| | | textureShape: 1 |
| | | singleChannelComponent: 0 |
| | | maxTextureSizeSet: 0 |
| | | compressionQualitySet: 0 |
| | | textureFormatSet: 0 |
| | | platformSettings: |
| | | - serializedVersion: 2 |
| | | buildTarget: DefaultTexturePlatform |
| | | maxTextureSize: 2048 |
| | | resizeAlgorithm: 0 |
| | | textureFormat: -1 |
| | | textureCompression: 1 |
| | | compressionQuality: 50 |
| | | crunchedCompression: 0 |
| | | allowsAlphaSplitting: 0 |
| | | overridden: 0 |
| | | androidETC2FallbackOverride: 0 |
| | | spriteSheet: |
| | | serializedVersion: 2 |
| | | sprites: [] |
| | | outline: [] |
| | | physicsShape: [] |
| | | bones: [] |
| | | spriteID: |
| | | vertices: [] |
| | | indices: |
| | | edges: [] |
| | | weights: [] |
| | | spritePackingTag: |
| | | pSDRemoveMatte: 0 |
| | | pSDShowRemoveMatteOption: 0 |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using System.IO; |
| | | using UnityEditor; |
| | | using UnityEngine; |
| | | |
| | | namespace H2Engine |
| | | { |
| | | [CustomEditor(typeof(Bhv_MapData))] |
| | | public class MapEditor : Editor |
| | | { |
| | | private string LS_KEY_SAVEPATH; |
| | | |
| | | private int m_TriggerSeed; |
| | | private int m_EventSeed; |
| | | private int m_TransferSeed; |
| | | private int RequestTriggerID() |
| | | { |
| | | return m_TriggerSeed++; |
| | | } |
| | | private int RequestEventID() |
| | | { |
| | | return m_EventSeed++; |
| | | } |
| | | |
| | | private Evt.E_EventType eventType = Evt.E_EventType.Enemy; |
| | | |
| | | [MenuItem("程序/MapEditor | 地图编辑器")] |
| | | static void Init() |
| | | { |
| | | var _mono = GameObject.FindObjectOfType<Bhv_MapData>(); |
| | | if (_mono == null) |
| | | { |
| | | var _root = CreateNewGO(Bhv_MapData.NodeName_Root); |
| | | _root.AddComponent<Bhv_MapData>(); |
| | | Selection.activeGameObject = _root; |
| | | |
| | | var _child = CreateNewGO(Bhv_MapData.NodeName_TriggerList); |
| | | _child.transform.SetParent(_root.transform); |
| | | |
| | | _child = CreateNewGO(Bhv_MapData.NodeName_EventList); |
| | | _child.transform.SetParent(_root.transform); |
| | | |
| | | _child = CreateNewGO(Bhv_MapData.NodeName_TransferList); |
| | | _child.transform.SetParent(_root.transform); |
| | | } |
| | | } |
| | | |
| | | public static GameObject CreateNewGO(string name) |
| | | { |
| | | var _go = new GameObject(name); |
| | | _go.transform.position = Vector3.zero; |
| | | _go.transform.eulerAngles = Vector3.zero; |
| | | _go.transform.localScale = Vector3.one; |
| | | return _go; |
| | | } |
| | | |
| | | private GUISkin gUISkin; |
| | | |
| | | /// <summary> |
| | | /// This function is called when the object becomes enabled and active. |
| | | /// </summary> |
| | | void OnEnable() |
| | | { |
| | | target.name = "MapEditor"; |
| | | LS_KEY_SAVEPATH = System.Environment.CurrentDirectory + "/MapEditor/Save"; |
| | | } |
| | | |
| | | public override void OnInspectorGUI() |
| | | { |
| | | if (gUISkin == null) |
| | | { |
| | | gUISkin = AssetDatabase.LoadAssetAtPath<GUISkin>("Assets/Scripts/Core/MapEditor/Editor/EditorResources/EditorSkin.guiskin"); |
| | | } |
| | | |
| | | serializedObject.Update(); |
| | | |
| | | var _mapData = target as Bhv_MapData; |
| | | GUILayout.Space(5); |
| | | |
| | | EditorGUILayout.BeginVertical(gUISkin.box); |
| | | |
| | | EditorGUILayout.BeginHorizontal(gUISkin.box, GUILayout.Height(24)); |
| | | EditorGUILayout.LabelField("数据ID", gUISkin.customStyles[0], GUILayout.Height(22), GUILayout.Width(60)); |
| | | _mapData.id = EditorGUILayout.IntField(_mapData.id, gUISkin.textField, GUILayout.Height(22)); |
| | | if (GUILayout.Button("加载", gUISkin.button, GUILayout.Width(60), GUILayout.Height(22))) |
| | | { |
| | | Load(); |
| | | } |
| | | if (GUILayout.Button("保存", gUISkin.button, GUILayout.Width(60), GUILayout.Height(22))) |
| | | { |
| | | Save(); |
| | | } |
| | | if (GUILayout.Button("导出", gUISkin.button, GUILayout.Width(60), GUILayout.Height(22))) |
| | | { |
| | | Export(); |
| | | } |
| | | EditorGUILayout.EndHorizontal(); |
| | | |
| | | /// -------------------------------------------------------------------------------- |
| | | /// 触发器列表 Start |
| | | EditorGUILayout.BeginVertical(gUISkin.box); |
| | | EditorGUILayout.BeginHorizontal(GUILayout.Height(22)); |
| | | EditorGUI.indentLevel += 1; |
| | | _mapData.showTriggerList = EditorGUILayout.Foldout(_mapData.showTriggerList, " 触发器列表", true, gUISkin.toggle); |
| | | EditorGUI.indentLevel -= 1; |
| | | if (GUILayout.Button("添加", gUISkin.button, GUILayout.Width(60), GUILayout.Height(22))) |
| | | { |
| | | CreateTrigger(); |
| | | _mapData.showTriggerList = true; |
| | | } |
| | | EditorGUILayout.EndHorizontal(); |
| | | if (_mapData.showTriggerList) |
| | | { |
| | | for (int i = _mapData.triggerList.Count - 1; i >= 0; --i) |
| | | { |
| | | var _trigger = _mapData.triggerList[i]; |
| | | if (_trigger == null) |
| | | { |
| | | _mapData.triggerList.RemoveAt(i); |
| | | continue; |
| | | } |
| | | if (_trigger.DrawUI(gUISkin)) |
| | | { |
| | | _mapData.triggerList.RemoveAt(i); |
| | | DestroyImmediate(_trigger.gameObject); |
| | | } |
| | | } |
| | | } |
| | | EditorGUILayout.EndVertical(); |
| | | /// 触发器列表 End |
| | | /// -------------------------------------------------------------------------------- |
| | | |
| | | /// -------------------------------------------------------------------------------- |
| | | /// 事件列表 Start |
| | | EditorGUILayout.BeginVertical(gUISkin.box); |
| | | EditorGUILayout.BeginHorizontal(GUILayout.Height(22)); |
| | | EditorGUI.indentLevel += 1; |
| | | _mapData.showEventList = EditorGUILayout.Foldout(_mapData.showEventList, " 事件列表", true, gUISkin.toggle); |
| | | EditorGUI.indentLevel -= 1; |
| | | eventType = (Evt.E_EventType)EditorGUILayout.EnumPopup(eventType, gUISkin.box, GUILayout.Height(22), GUILayout.Width(100)); |
| | | if (GUILayout.Button("添加", gUISkin.button, GUILayout.Width(60), GUILayout.Height(22))) |
| | | { |
| | | CreateEvent(eventType); |
| | | _mapData.showEventList = true; |
| | | } |
| | | EditorGUILayout.EndHorizontal(); |
| | | if (_mapData.showEventList) |
| | | { |
| | | for (int i = _mapData.eventList.Count - 1; i >= 0; --i) |
| | | { |
| | | var _event = _mapData.eventList[i]; |
| | | if (_event == null) |
| | | { |
| | | _mapData.eventList.RemoveAt(i); |
| | | continue; |
| | | } |
| | | if (_event.DrawUI(gUISkin)) |
| | | { |
| | | _mapData.eventList.RemoveAt(i); |
| | | DestroyImmediate(_event.gameObject); |
| | | } |
| | | } |
| | | } |
| | | EditorGUILayout.EndVertical(); |
| | | /// 事件列表 End |
| | | /// -------------------------------------------------------------------------------- |
| | | |
| | | /// -------------------------------------------------------------------------------- |
| | | /// 传送点列表 Start |
| | | EditorGUILayout.BeginVertical(gUISkin.box); |
| | | EditorGUILayout.BeginHorizontal(GUILayout.Height(22)); |
| | | EditorGUI.indentLevel += 1; |
| | | _mapData.showTransferList = EditorGUILayout.Foldout(_mapData.showTransferList, " 传送组列表", true, gUISkin.toggle); |
| | | EditorGUI.indentLevel -= 1; |
| | | if (GUILayout.Button("添加", gUISkin.button, GUILayout.Width(60), GUILayout.Height(22))) |
| | | { |
| | | CreateTransferPoint(); |
| | | _mapData.showTransferList = true; |
| | | } |
| | | EditorGUILayout.EndHorizontal(); |
| | | if (_mapData.showTransferList) |
| | | { |
| | | for (int i = _mapData.transferList.Count - 1; i >= 0; --i) |
| | | { |
| | | var _transfer = _mapData.transferList[i]; |
| | | if (_transfer == null) |
| | | { |
| | | _mapData.transferList.RemoveAt(i); |
| | | continue; |
| | | } |
| | | if (_transfer.DrawUI(_mapData, gUISkin)) |
| | | { |
| | | _mapData.transferList.RemoveAt(i); |
| | | DestroyImmediate(_transfer.gameObject); |
| | | } |
| | | } |
| | | } |
| | | EditorGUILayout.EndVertical(); |
| | | /// 传送点列表 End |
| | | /// -------------------------------------------------------------------------------- |
| | | |
| | | EditorGUILayout.EndVertical(); |
| | | |
| | | if (GUI.changed) |
| | | { |
| | | EditorUtility.SetDirty(target); |
| | | serializedObject.ApplyModifiedProperties(); |
| | | } |
| | | } |
| | | |
| | | private void CreateTrigger() |
| | | { |
| | | var _mapData = target as Bhv_MapData; |
| | | var _trigger = CreateNewGO(Bhv_MapData.NodeName_Trigger + RequestTriggerID()); |
| | | var _triggerBhv = _trigger.AddComponent<Bhv_MapTrigger>(); |
| | | _triggerBhv.boxCollider = _trigger.AddComponent<BoxCollider>(); |
| | | _trigger.transform.SetParent(_mapData.transform.Find(Bhv_MapData.NodeName_TriggerList)); |
| | | _mapData.triggerList.Add(_triggerBhv); |
| | | } |
| | | |
| | | private void CreateEvent(Evt.E_EventType type) |
| | | { |
| | | var _mapData = target as Bhv_MapData; |
| | | |
| | | if (type == Evt.E_EventType.Enemy) |
| | | { |
| | | var _event = CreateNewGO(Bhv_MapData.NodeName_Event + RequestEventID()); |
| | | var _eventBhv = _event.AddComponent<Bhv_Evt_RefreshMonster>(); |
| | | _eventBhv.type = type; |
| | | _event.transform.SetParent(_mapData.transform.Find(Bhv_MapData.NodeName_EventList)); |
| | | _mapData.eventList.Add(_eventBhv); |
| | | } |
| | | } |
| | | |
| | | private void CreateTransferPoint() |
| | | { |
| | | var _mapData = target as Bhv_MapData; |
| | | var _transfer = CreateNewGO(Bhv_MapData.NodeName_Transfer + _mapData.transferList.Count); |
| | | var _transferBhv = _transfer.AddComponent<Bhv_Trasfer>(); |
| | | _transfer.transform.SetParent(_mapData.transform.Find(Bhv_MapData.NodeName_TransferList)); |
| | | _mapData.transferList.Add(_transferBhv); |
| | | } |
| | | |
| | | private void Save() |
| | | { |
| | | var _mapData = target as Bhv_MapData; |
| | | string _defaultPath = EditorPrefs.GetString(LS_KEY_SAVEPATH, System.Environment.CurrentDirectory); |
| | | string _path = EditorUtility.SaveFilePanel("保存数据", _defaultPath, "map_" + _mapData.id, "ed"); |
| | | if (string.IsNullOrEmpty(_path)) |
| | | { |
| | | return; |
| | | } |
| | | using (var _fileStream = File.OpenWrite(_path)) |
| | | { |
| | | using (var _binaryWriter = new BinaryWriter(_fileStream)) |
| | | { |
| | | _mapData.Save(_binaryWriter); |
| | | } |
| | | } |
| | | } |
| | | |
| | | private void Export() |
| | | { |
| | | var _mapData = target as Bhv_MapData; |
| | | string _defaultPath = EditorPrefs.GetString(LS_KEY_SAVEPATH, System.Environment.CurrentDirectory); |
| | | string _path = EditorUtility.SaveFilePanel("导出数据", _defaultPath, "map_" + _mapData.id, "gd"); |
| | | if (string.IsNullOrEmpty(_path)) |
| | | { |
| | | return; |
| | | } |
| | | using (var _fileStream = File.OpenWrite(_path)) |
| | | { |
| | | using (var _binaryWriter = new BinaryWriter(_fileStream)) |
| | | { |
| | | _mapData.Save(_binaryWriter); |
| | | } |
| | | } |
| | | } |
| | | |
| | | private void Load() |
| | | { |
| | | var _mapData = target as Bhv_MapData; |
| | | string _defaultPath = EditorPrefs.GetString(LS_KEY_SAVEPATH, System.Environment.CurrentDirectory); |
| | | string _path = EditorUtility.OpenFilePanel("打开数据", _defaultPath, "ed"); |
| | | if (string.IsNullOrEmpty(_path)) |
| | | { |
| | | return; |
| | | } |
| | | |
| | | _mapData.Clear(); |
| | | |
| | | using (var _fileStream = File.OpenRead(_path)) |
| | | { |
| | | using (var _binaryReader = new BinaryReader(_fileStream)) |
| | | { |
| | | _mapData.Load(_binaryReader); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: bf0eaba683a1e8a49bb87626ce3a7568 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | |
|
| | | private IEnumerator Co_DoLoadAsset(string assetBundleName, string assetName, Action<bool, UnityEngine.Object> callBack = null)
|
| | | {
|
| | | #if UNITY_5
|
| | | assetBundleName = assetBundleName.ToLower();
|
| | | #endif
|
| | |
|
| | | #if UNITY_EDITOR
|
| | | RunTimeABLoadLog.AddLog(assetBundleName, assetName, UnityEngine.SceneManagement.SceneManager.GetActiveScene().name);
|
| | | #endif
|
| | |
| | | GeneralDefine.ModeDefaultConfig[0][1]);
|
| | | }
|
| | |
|
| | | public static void AsyncLoadDefaultFuncNpc(Action<bool, UnityEngine.Object> callBack)
|
| | | {
|
| | | AsyncLoadNpc(GeneralDefine.ModeDefaultConfig[0][0],
|
| | | GeneralDefine.ModeDefaultConfig[0][1],
|
| | | callBack);
|
| | | }
|
| | |
|
| | | public static GameObject LoadDefaultHorse()
|
| | | {
|
| | | return LoadMob(GeneralDefine.ModeDefaultConfig[3][0],
|
| | |
| | | AssetBundleUtility.Instance.Co_LoadAsset(bundleName, config.fxName, _callBack);
|
| | | }
|
| | | }
|
| | |
|
| | | public static void AsyncLoadNpc(int npcID, Action<bool, UnityEngine.Object> callBack = null)
|
| | | {
|
| | | NPCConfig _m = Config.Instance.Get<NPCConfig>(npcID);
|
| | |
|
| | | if (_m == null || _m.MODE.Equals("0"))
|
| | | {
|
| | | if (callBack != null)
|
| | | {
|
| | | callBack(false, null);
|
| | | }
|
| | | }
|
| | |
|
| | | string _assetName;
|
| | | string _assetBundleName;
|
| | |
|
| | | if (GAMgr.Instance.s_NpcID2Assetname.TryGetValue(npcID, out _assetName))
|
| | | {
|
| | | _assetBundleName = GAMgr.Instance.s_NpcID2BundleName[npcID];
|
| | | }
|
| | | else
|
| | | {
|
| | | _assetName = StringUtility.Contact(raceSuffix, _m.MODE);
|
| | | _assetBundleName = StringUtility.Contact(ResourcesPath.MOB_FOLDER_NAME, _assetName);
|
| | | GAMgr.Instance.s_NpcID2Assetname[npcID] = _assetName;
|
| | | GAMgr.Instance.s_NpcID2BundleName[npcID] = _assetBundleName;
|
| | | }
|
| | |
|
| | | AsyncLoadNpc(_assetBundleName, _assetName, callBack);
|
| | | }
|
| | |
|
| | | public static void AsyncLoadNpc(string assetBundleName, string assetName, Action<bool, UnityEngine.Object> callBack = null)
|
| | | {
|
| | | if (AssetSource.mobFromEditor)
|
| | | {
|
| | | #if UNITY_EDITOR
|
| | | string _resourcePath = StringUtility.Contact(ResourcesPath.ResourcesOutAssetPath,
|
| | | "Mob/",
|
| | | assetName,
|
| | | ".prefab");
|
| | |
|
| | | var _p = AssetDatabase.LoadAssetAtPath<GameObject>(_resourcePath);
|
| | | if (callBack != null)
|
| | | {
|
| | | callBack(true, _p);
|
| | | }
|
| | | #endif
|
| | | }
|
| | | else
|
| | | {
|
| | | AssetBundleUtility.Instance.Co_LoadAsset(assetBundleName, assetName, callBack);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public override void InitPerformance(uint clientInstID, int npcID)
|
| | | protected override void OnPrefabLoadFinished(bool result, Object prefab)
|
| | | {
|
| | | base.InitPerformance(clientInstID, npcID);
|
| | | base.OnPrefabLoadFinished(result, prefab);
|
| | |
|
| | | if (!result)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | if (string.IsNullOrEmpty(NpcConfig.Equips))
|
| | | {
|
| | |
| | | public Transform MP_Stun { get; protected set; }
|
| | | public Transform MP_Weapon { get; protected set; }
|
| | |
|
| | | public uint ClientInstID { get; private set; }
|
| | | public uint ServerInstID { get; private set; }
|
| | | public uint ClientInstID { get; protected set; }
|
| | | public uint ServerInstID { get; protected set; }
|
| | |
|
| | | protected Transform m_Root = null;
|
| | | public Transform Root { get { return m_Root; } }
|
| | |
| | |
|
| | | public GameObjType ActorType { get; protected set; }
|
| | |
|
| | | public E_ActorGroup Group { get; private set; }
|
| | | public E_ActorGroup Group { get; protected set; }
|
| | | public GActorInfo ActorInfo { get; protected set; }
|
| | |
|
| | | private E_ActorState m_State;
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | protected GameNetPackBasic m_Package = null;
|
| | |
|
| | | public void Init(uint serverInstID, uint clientInstID, uint npcID, E_ActorGroup group, GameNetPackBasic package)
|
| | | {
|
| | | m_LoadDefaultRes = false;
|
| | | m_Package = package;
|
| | |
|
| | | NpcConfig = Config.Instance.Get<NPCConfig>((int)npcID);
|
| | | ClientInstID = clientInstID;
|
| | |
|
| | | if (NpcConfig == null)
|
| | | {
|
| | | // 报错
|
| | | return;
|
| | | }
|
| | |
|
| | | ShowOrHide = true;
|
| | | needSyncGroundHeight = true;
|
| | |
|
| | | if (!m_Root)
|
| | | {
|
| | | m_Root = new GameObject().transform;
|
| | | // 将被复用,不被销毁
|
| | | Object.DontDestroyOnLoad(m_Root);
|
| | | }
|
| | |
|
| | | m_Root.localScale = Vector3.one;
|
| | | Forward = m_Root.forward;
|
| | | // 角色属性
|
| | | if (ActorInfo == null)
|
| | | {
|
| | | ActorInfo = new GActorInfo();
|
| | | }
|
| | |
|
| | | ActorInfo.sid = serverInstID;
|
| | | ActorInfo.ownerSID = 0;
|
| | | ActorInfo.serverDie = false;
|
| | |
|
| | | #if UNITY_EDITOR
|
| | | m_Root.name = string.Format("{0}_{1}_{2}",
|
| | | GetType().ToString(),
|
| | | serverInstID,
|
| | | clientInstID);
|
| | | #endif
|
| | |
|
| | | ServerInstID = serverInstID;
|
| | | ClientInstID = clientInstID;
|
| | |
|
| | | Group = group;
|
| | |
|
| | | State = E_ActorState.Idle;
|
| | |
|
| | | // if (!m_AudioSource)
|
| | | // {
|
| | |
| | | // _audioSourceNode.transform.localPosition = new Vector3(0, 0.5f, 0);
|
| | | // m_AudioSource = _audioSourceNode.GetComponent<AudioSource>();
|
| | | // }
|
| | |
|
| | |
|
| | | ActorType = GameObjType.gotNPC;
|
| | |
|
| | | // 初始化表现层
|
| | | InitPerformance(clientInstID, (int)npcID);
|
| | |
|
| | | // 执行父类的初始化
|
| | | Init(serverInstID, clientInstID, group, package);
|
| | |
|
| | | Root.gameObject.layer = LayerUtility.Monster;
|
| | |
|
| | |
| | | }
|
| | |
|
| | | RequestShadow();
|
| | | RequestName();
|
| | |
|
| | | // 这里针对指定的NPC特殊矫正位置
|
| | | if (GeneralDefine.NpcPosOffset.ContainsKey(NpcConfig.NPCID))
|
| | |
| | | // SoundPlayer.Instance.PlayAudio(m_AudioSource, _effectConfig.audio);
|
| | | //}
|
| | | }
|
| | |
|
| | | // 初始化表现层
|
| | | InitPerformance(clientInstID, (int)npcID);
|
| | | }
|
| | |
|
| | | protected override void OnUnit()
|
| | |
| | | {
|
| | | }
|
| | |
|
| | | public virtual void InitPerformance(uint clientInstID, int npcID)
|
| | | protected virtual void OnPrefabLoadFinished(bool result, UnityEngine.Object prefab)
|
| | | {
|
| | | GameObject _prefab = InstanceResourcesLoader.LoadNpcPrefab(npcID);
|
| | |
|
| | | if (_prefab == null)
|
| | | if (!result)
|
| | | {
|
| | | _prefab = InstanceResourcesLoader.LoadDefaultFuncNPC();
|
| | |
|
| | | if (_prefab)
|
| | | {
|
| | | m_LoadDefaultRes = true;
|
| | | }
|
| | | return;
|
| | | }
|
| | |
|
| | | if (_prefab != null)
|
| | | if (prefab == null)
|
| | | {
|
| | | if (PreFightMission.Instance.IsFinished())
|
| | | if (!m_LoadDefaultRes)
|
| | | {
|
| | | GAMgr.Instance.AddNeedDestroyPrefab(_prefab);
|
| | | }
|
| | | if (this is GA_Guard)
|
| | | {
|
| | | GAMgr.Instance.RemoveNeedDestroyPrefab(_prefab);
|
| | | }
|
| | |
|
| | | if (m_LoadDefaultRes)
|
| | | {
|
| | | m_Model = GameObjectPoolManager.Instance.RequestDefaultFuncNpc();
|
| | | InstanceResourcesLoader.AsyncLoadDefaultFuncNpc(OnPrefabLoadFinished);
|
| | | m_LoadDefaultRes = true;
|
| | | }
|
| | | else
|
| | | {
|
| | | m_Model = GameObjectPoolManager.Instance.RequestNpcGameObject(npcID);
|
| | | m_LoadDefaultRes = false;
|
| | | }
|
| | |
|
| | | if (m_Model)
|
| | | {
|
| | | m_Animator = m_Model.GetComponent<Animator>();
|
| | | if (m_Animator)
|
| | | {
|
| | | RuntimeAnimatorController _controller = null;
|
| | | if (m_LoadDefaultRes)
|
| | | {
|
| | | _controller = InstanceResourcesLoader.LoadDefaultMobAnimatorController_Func();
|
| | | }
|
| | | else
|
| | | {
|
| | | string _name = NpcConfig.MODE;
|
| | | if (_name.Contains("A_Zs"))
|
| | | {
|
| | | _name = "A_Zs";
|
| | | GameObjectPoolManager.Instance.AddDontDestroyGoInstID(m_Model.GetInstanceID());
|
| | | }
|
| | | else if (_name.Contains("A_Fs"))
|
| | | {
|
| | | _name = "A_Fs";
|
| | | GameObjectPoolManager.Instance.AddDontDestroyGoInstID(m_Model.GetInstanceID());
|
| | | }
|
| | | _controller = AnimatorControllerLoader.LoadMobController(AnimatorControllerLoader.controllerSuffix, _name);
|
| | | }
|
| | | if (_controller)
|
| | | {
|
| | | m_Animator.runtimeAnimatorController = _controller;
|
| | | }
|
| | | m_Animator.enabled = true;
|
| | | m_Animator.SetInteger(GAStaticDefine.Param_ActorInstID, (int)clientInstID);
|
| | | }
|
| | |
|
| | | SetupBindNode(m_Model.transform);
|
| | | }
|
| | | return;
|
| | | }
|
| | |
|
| | | if (PreFightMission.Instance.IsFinished())
|
| | | {
|
| | | GAMgr.Instance.AddNeedDestroyPrefab(prefab as GameObject);
|
| | | }
|
| | | if (this is GA_Guard)
|
| | | {
|
| | | GAMgr.Instance.RemoveNeedDestroyPrefab(prefab as GameObject);
|
| | | }
|
| | |
|
| | | if (m_LoadDefaultRes)
|
| | | {
|
| | | m_Model = GameObjectPoolManager.Instance.RequestDefaultFuncNpc();
|
| | | }
|
| | | else
|
| | | {
|
| | | m_Model = GameObjectPoolManager.Instance.RequestGameObject(prefab as GameObject);
|
| | | }
|
| | |
|
| | | if (m_Model)
|
| | | {
|
| | | m_Animator = m_Model.GetComponent<Animator>();
|
| | | if (m_Animator)
|
| | | {
|
| | | RuntimeAnimatorController _controller = null;
|
| | | if (m_LoadDefaultRes)
|
| | | {
|
| | | _controller = InstanceResourcesLoader.LoadDefaultMobAnimatorController_Func();
|
| | | }
|
| | | else
|
| | | {
|
| | | string _name = NpcConfig.MODE;
|
| | | if (_name.Contains("A_Zs"))
|
| | | {
|
| | | _name = "A_Zs";
|
| | | GameObjectPoolManager.Instance.AddDontDestroyGoInstID(m_Model.GetInstanceID());
|
| | | }
|
| | | else if (_name.Contains("A_Fs"))
|
| | | {
|
| | | _name = "A_Fs";
|
| | | GameObjectPoolManager.Instance.AddDontDestroyGoInstID(m_Model.GetInstanceID());
|
| | | }
|
| | | _controller = AnimatorControllerLoader.LoadMobController(AnimatorControllerLoader.controllerSuffix, _name);
|
| | | }
|
| | | if (_controller)
|
| | | {
|
| | | m_Animator.runtimeAnimatorController = _controller;
|
| | | }
|
| | | m_Animator.enabled = true;
|
| | | m_Animator.SetInteger(GAStaticDefine.Param_ActorInstID, (int)ClientInstID);
|
| | | }
|
| | |
|
| | | SetupBindNode(m_Model.transform);
|
| | | }
|
| | |
|
| | | OnInit(m_Package);
|
| | | }
|
| | |
|
| | | public virtual void InitPerformance(uint clientInstID, int npcID)
|
| | | {
|
| | | GameObject _prefab = InstanceResourcesLoader.LoadNpcPrefab(npcID);
|
| | | InstanceResourcesLoader.AsyncLoadNpc(npcID, OnPrefabLoadFinished);
|
| | | }
|
| | |
|
| | | public sealed override void SetAnimatorSpeed(float speed)
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 26d1f2a39b41ff94189c36bf8259f9a3 |
| | | folderAsset: yes |
| | | timeCreated: 1541424855 |
| | | licenseType: Free |
| | | DefaultImporter: |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | public class FrontEndDungeon : Singleton<FrontEndDungeon> |
| | | { |
| | | public void Build(H2Engine.MapData mapData) |
| | | { |
| | | |
| | | } |
| | | |
| | | public void CreateTrasfer(H2Engine.MapTrasfer transfer) |
| | | { |
| | | |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: daf42844aeeb3ce48a661b3e1cdf146b |
| | | timeCreated: 1541424855 |
| | | licenseType: Free |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | public class MapTransferSystem |
| | | { |
| | | |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 5e82b2edb21ac044c9cc21aa0d31038b |
| | | timeCreated: 1541424855 |
| | | licenseType: Free |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | mapOk.MapID = PlayerDatas.Instance.baseData.MapID;
|
| | | mapOk.Type = 0;
|
| | | GameNetSystem.Instance.SendInfo(mapOk);
|
| | |
|
| | | var _mapData = H2Engine.MapData.LoadFormFile("map_" + _stageId);
|
| | | if (_mapData != null)
|
| | | {
|
| | |
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|