| | |
| | | { |
| | | public class Bhv_MapTrigger : MonoBehaviour |
| | | { |
| | | public enum E_TriggerType |
| | | { |
| | | Trigger, |
| | | EnterStage |
| | | } |
| | | |
| | | [HideInInspector] |
| | | public int id; |
| | | [HideInInspector] |
| | | public E_TriggerType triggerType = E_TriggerType.Trigger; |
| | | public MapTrigger.E_TriggerType triggerType = MapTrigger.E_TriggerType.Trigger; |
| | | [HideInInspector] |
| | | public Evt.E_EventType type = Evt.E_EventType.Enemy; |
| | | [HideInInspector] |
| | |
| | | public void Load(BinaryReader br) |
| | | { |
| | | id = br.ReadInt32(); |
| | | triggerType = (E_TriggerType)br.ReadByte(); |
| | | triggerType = (MapTrigger.E_TriggerType)br.ReadByte(); |
| | | type = (Evt.E_EventType)br.ReadByte(); |
| | | prevID = br.ReadInt32(); |
| | | float _pX = br.ReadSingle(); |
| | |
| | | EditorGUILayout.LabelField("前置触发器", guiSkin.customStyles[0], GUILayout.Height(22), GUILayout.Width(80)); |
| | | prevID = EditorGUILayout.IntField(prevID, guiSkin.textField, GUILayout.Height(20)); |
| | | EditorGUILayout.LabelField("触发器类型", guiSkin.customStyles[0], GUILayout.Height(22), GUILayout.Width(80)); |
| | | triggerType = (E_TriggerType)EditorGUILayout.EnumPopup(triggerType, guiSkin.customStyles[1], GUILayout.Height(20), GUILayout.Width(100)); |
| | | triggerType = (MapTrigger.E_TriggerType)EditorGUILayout.EnumPopup(triggerType, guiSkin.customStyles[1], GUILayout.Height(20), GUILayout.Width(100)); |
| | | EditorGUILayout.EndHorizontal(); |
| | | |
| | | EditorGUILayout.BeginVertical(guiSkin.customStyles[1]); |