IndieGame/client/Assets/Resources/FSM/NormalNPC.asset

30 lines
6.4 KiB
Plaintext
Raw Permalink Normal View History

2024-10-11 10:12:15 +08:00
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f945e777233a59f4aba40aeca29093a6, type: 3}
m_Name: NormalNPC
m_EditorClassIdentifier:
_serializedGraph: '{"type":"NodeCanvas.StateMachines.FSM","nodes":[{"_actionList":{"executionMode":1,"actions":[{"method":{"_baseInfo":"Ether.AnimController|PlayAnim|System.Void","_paramsInfo":"System.String|UnityEngine.Vector2"},"parameters":[{"_type":"System.String","_value":{"$content":"Idle","$type":"System.String"}},{"_type":"UnityEngine.Vector2","_name":"direction","_targetVariableID":"0f497a36-2b25-4ada-bf48-2568c700a321"}],"returnValue":{},"$type":"NodeCanvas.Tasks.Actions.ExecuteFunction_Multiplatform"},{"log":{"_value":"\u5207\u6362\u5230Idle\u72b6\u6001"},"secondsToRun":0.0,"$type":"NodeCanvas.Tasks.Actions.DebugLogText"}]},"_color":{"r":0.2317383,"g":0.9811321,"a":1.0},"_name":"Idle","_position":{"x":-500.0,"y":160.0},"$type":"NodeCanvas.StateMachines.ActionState","$id":"0"},{"_position":{"x":-120.0,"y":20.0},"$type":"NodeCanvas.StateMachines.AnyState","$id":"1"},{"_actionList":{"actions":[{"method":{"_baseInfo":"Ether.AnimController|PlayAnim|System.Void","_paramsInfo":"System.String|UnityEngine.Vector2"},"parameters":[{"_type":"System.String","_value":{"$content":"Walk","$type":"System.String"}},{"_type":"UnityEngine.Vector2","_name":"moveDirection","_targetVariableID":"20446760-79b2-4794-bb78-f8d8946fa932"}],"returnValue":{},"$type":"NodeCanvas.Tasks.Actions.ExecuteFunction_Multiplatform"},{"valueA":{"_name":"direction","_targetVariableID":"0f497a36-2b25-4ada-bf48-2568c700a321"},"valueB":{"_name":"moveDirection","_targetVariableID":"20446760-79b2-4794-bb78-f8d8946fa932"},"$type":"NodeCanvas.Tasks.Actions.SetVector3"},{"log":{"_value":"\u5207\u6362\u5230Walk\u72b6\u6001"},"secondsToRun":0.0,"$type":"NodeCanvas.Tasks.Actions.DebugLogText"}]},"_color":{"r":0.3215686,"g":1.0,"b":0.8793073,"a":1.0},"_name":"Walk","_position":{"x":-200.0,"y":160.0},"$type":"NodeCanvas.StateMachines.ActionState","$id":"2"},{"_onEnterList":{"executionMode":1,"actions":[{"method":{"_baseInfo":"Ether.AnimController|PlayAnim|System.Void","_paramsInfo":"System.String|UnityEngine.Vector2"},"parameters":[{"_type":"System.String","_value":{"$content":"Talk","$type":"System.String"}},{"_type":"UnityEngine.Vector2","_name":"direction","_targetVariableID":"0f497a36-2b25-4ada-bf48-2568c700a321"}],"returnValue":{},"$type":"NodeCanvas.Tasks.Actions.ExecuteFunction_Multiplatform"},{"method":{"_baseInfo":"NodeCanvas.DialogueTrees.DialogueTreeController|StartDialogue|System.Void","_paramsInfo":""},"parameters":[],"returnValue":{},"$type":"NodeCanvas.Tasks.Actions.ExecuteFunction_Multiplatform"},{"parameters":[],"returnValue":{},"overrideAgent":{"_type":"UnityEngine.Transform","_name":"player","_targetVariableID":"36bd99a5-859f-4ca4-9b98-23336fc911c2"},"$type":"NodeCanvas.Tasks.Actions.ExecuteFunction_Multiplatform"}]},"_onUpdateList":{"executionMode":1,"actions":[]},"_onExitList":{"executionMode":1,"actions":[]},"foldEnter":true,"_color":{"r":1.0,"g":0.42,"b":0.32,"a":1.0},"_name":"Talk","_position":{"x":260.0,"y":120.0},"$type":"NodeCanvas.StateMachines.SuperActionState","$id":"3"},{"_conditionList":{"conditions":[]},"_actionList":{"executionMode":1,"actions":[{"searchTag":"Player","saveAs":{"_name":"player","_targetVariableID":"36bd99a5-859f-4ca4-9b98-23336fc911c2"},"$type":"NodeCanvas.Tasks.Actions.FindWithTag"}]},"_position":{"x":-440.0,"y":-240.0},"$type":"NodeCanvas.StateMachines.OnFSMEnter"}],"connections":[{"_condition":{"conditions":[{"method":{"_baseInfo":"NodeCanvas.StateMachines.FSMOwner|get_currentRootStateName|System.String","_paramsInfo":""},"checkValue":{"_type":"System.String","_value":{"$content":"Walk","$type":"System.String"}},"_invert":true,"$type":"NodeCanvas.Tasks.Conditions.CheckProperty_Multiplatform"},{"valueA":{"_name":"state","_targetVariableID":"7ef0139d-d918-40d1-995a-e748e9f6273b"},"valueB":{"_value":1},"$type":"NodeCanvas.Tasks.Conditions.CheckVariable`1[[System.Int32,
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]"}],"$type":"NodeCanvas.Framework.ConditionList"},"_sourceNode":{"$ref":"1"},"_targetNode":{"$ref":"2"},"$type":"NodeCanvas.StateMachines.FSMConnection"},{"_condition":{"conditions":[{"valueA":{"_name":"state","_targetVariableID":"7ef0139d-d918-40d1-995a-e748e9f6273b"},"valueB":{},"$type":"NodeCanvas.Tasks.Conditions.CheckVariable`1[[System.Int32,
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]"},{"method":{"_baseInfo":"NodeCanvas.StateMachines.FSMOwner|get_currentRootStateName|System.String","_paramsInfo":""},"checkValue":{"_type":"System.String","_value":{"$content":"Idle","$type":"System.String"}},"_invert":true,"$type":"NodeCanvas.Tasks.Conditions.CheckProperty_Multiplatform"}],"$type":"NodeCanvas.Framework.ConditionList"},"_sourceNode":{"$ref":"1"},"_targetNode":{"$ref":"0"},"$type":"NodeCanvas.StateMachines.FSMConnection"},{"_condition":{"valueA":{"_name":"state","_targetVariableID":"7ef0139d-d918-40d1-995a-e748e9f6273b"},"valueB":{"_value":2},"$type":"NodeCanvas.Tasks.Conditions.CheckVariable`1[[System.Int32,
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]"},"_sourceNode":{"$ref":"1"},"_targetNode":{"$ref":"3"},"$type":"NodeCanvas.StateMachines.FSMConnection"},{"_condition":{"targetVariable":{"_name":"moveDirection","_targetVariableID":"20446760-79b2-4794-bb78-f8d8946fa932"},"$type":"NodeCanvas.Tasks.Conditions.BBVariableChanged"},"_sourceNode":{"$ref":"2"},"_targetNode":{"$ref":"2"},"$type":"NodeCanvas.StateMachines.FSMConnection"}],"canvasGroups":[],"localBlackboard":{"_variables":{"direction":{"_value":{"y":-1.0},"_name":"direction","_id":"0f497a36-2b25-4ada-bf48-2568c700a321","$type":"NodeCanvas.Framework.Variable`1[[UnityEngine.Vector2,
UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]"},"player":{"_name":"player","_id":"36bd99a5-859f-4ca4-9b98-23336fc911c2","$type":"NodeCanvas.Framework.Variable`1[[UnityEngine.GameObject,
UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]"}}}}'
_objectReferences: []
_graphSource:
_version: 3.3
_category:
_comments:
_translation: {x: 329, y: 258}
_zoomFactor: 1
_haltSerialization: 0
_externalSerializationFile: {fileID: 0}