| New file |
| | |
| | | public class PN_StartPlayerAI : ProcessNode |
| | | { |
| | | public sealed override void Init() |
| | | { |
| | | #if UNITY_EDITOR |
| | | UnityEngine.Debug.LogFormat("恢复自动AI状态"); |
| | | #endif |
| | | |
| | | GA_Hero _hero = PlayerDatas.Instance.hero; |
| | | if (_hero != null) |
| | | { |
| | | _hero.Behaviour.StartHandupAI(); |
| | | } |
| | | } |
| | | |
| | | public sealed override bool IsOver() |
| | | { |
| | | return true; |
| | | } |
| | | |
| | | public sealed override void UnInit() |
| | | { |
| | | } |
| | | |
| | | public sealed override void Update() |
| | | { |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 9fffea103d73be04180589050fb008e4 |
| | | timeCreated: 1556285864 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | case ProcessNode.E_ProcessType.StopEffect: |
| | | m_NodeQueue.Enqueue(new PN_StopEffect(npc, _node.param)); |
| | | break; |
| | | case ProcessNode.E_ProcessType.StartPlayerAI: |
| | | m_NodeQueue.Enqueue(new PN_StartPlayerAI()); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | |
| | | StopAI, |
| | | PlayEffect, |
| | | StopEffect, |
| | | StartPlayerAI, |
| | | } |
| | | |
| | | public int param; |
| | |
| | | { |
| | | _Item(ref _node, "停止特效"); |
| | | } |
| | | else if (_node.nodeType == ProcessNode.E_ProcessType.StartPlayerAI) |
| | | { |
| | | } |
| | | EditorGUILayout.EndVertical(); |
| | | EditorGUILayout.BeginVertical(); |
| | | if (GUILayout.Button("删除", GUILayout.Height(20))) |