%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!114 &11400000 MonoBehaviour: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 0} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 1219815696, guid: e743331561ef77147ae48cda9bcb8209, type: 3} m_Name: AddToEnemyModel_template m_EditorClassIdentifier: category: General fsm: dataVersion: 1 usedInTemplate: {fileID: 11400000} name: ReadAnimEventsFSM startState: Load states: - name: NotDealingDamage description: colorIndex: 0 position: serializedVersion: 2 x: 55 y: 274 width: 147 height: 16 isBreakpoint: 0 isSequence: 0 hideUnused: 0 transitions: [] actionData: actionNames: [] customNames: [] actionEnabled: actionIsOpen: actionStartIndex: actionHashCodes: unityObjectParams: [] fsmGameObjectParams: [] fsmOwnerDefaultParams: [] animationCurveParams: [] functionCallParams: [] fsmTemplateControlParams: [] fsmEventTargetParams: [] fsmPropertyParams: [] layoutOptionParams: [] fsmStringParams: [] fsmObjectParams: [] fsmVarParams: [] fsmArrayParams: [] fsmEnumParams: [] fsmFloatParams: [] fsmIntParams: [] fsmBoolParams: [] fsmVector2Params: [] fsmVector3Params: [] fsmColorParams: [] fsmRectParams: [] fsmQuaternionParams: [] stringParams: [] byteData: arrayParamSizes: arrayParamTypes: [] customTypeSizes: customTypeNames: [] paramDataType: paramName: [] paramDataPos: paramByteDataSize: - name: CheckWhatWasHit description: 'This state is triggered by the Animator Events, at the moment when the sword should strike. ' colorIndex: 0 position: serializedVersion: 2 x: 320 y: 263 width: 385 height: 48 isBreakpoint: 0 isSequence: 0 hideUnused: 0 transitions: - fsmEvent: name: DealDamage isSystemEvent: 0 isGlobal: 1 toState: CheckIfPlayerIsDodging linkStyle: 0 linkConstraint: 0 colorIndex: 0 - fsmEvent: name: FINISHED isSystemEvent: 1 isGlobal: 1 toState: NotDealingDamage linkStyle: 0 linkConstraint: 0 colorIndex: 0 actionData: actionNames: - HutongGames.PlayMaker.Actions.Raycast2 customNames: - actionEnabled: 01 actionIsOpen: 01 actionStartIndex: 00000000 actionHashCodes: 46acbf02 unityObjectParams: [] fsmGameObjectParams: - useVariable: 1 name: HitObject tooltip: showInInspector: 0 networkSync: 0 value: {fileID: 0} fsmOwnerDefaultParams: - ownerOption: 1 gameObject: useVariable: 1 name: RaycasterFront tooltip: showInInspector: 0 networkSync: 0 value: {fileID: 0} animationCurveParams: [] functionCallParams: [] fsmTemplateControlParams: [] fsmEventTargetParams: [] fsmPropertyParams: [] layoutOptionParams: [] fsmStringParams: [] fsmObjectParams: [] fsmVarParams: [] fsmArrayParams: [] fsmEnumParams: [] fsmFloatParams: [] fsmIntParams: [] fsmBoolParams: [] fsmVector2Params: [] fsmVector3Params: [] fsmColorParams: [] fsmRectParams: [] fsmQuaternionParams: [] stringParams: [] byteData: 0000000000000000000000000100000000000000000000803f00010000009a99d93f004465616c44616d61676546494e49534845440001000000000000000000000000010000000000000000000000000100000000010000000000000000000000000000803feceb6b3f8180803c0000803f000000 arrayParamSizes: 01000000 arrayParamTypes: - HutongGames.PlayMaker.FsmInt customTypeSizes: customTypeNames: [] paramDataType: 140000001c0000001c000000070000000f000000170000001700000011000000130000001c0000001c0000000f000000100000000c00000010000000110000001900000011000000 paramName: - fromGameObject - fromPosition - direction - space - distance - hitEvent - noHitEvent - storeDidHit - storeHitObject - storeHitPoint - storeHitNormal - storeHitDistance - repeatInterval - layerMask - - invertMask - debugColor - debug paramDataPos: 00000000000000000d0000001a0000001e000000230000002d000000350000000000000037000000440000005100000056000000000000005b000000600000006200000073000000 paramByteDataSize: 000000000d0000000d00000004000000050000000a0000000800000002000000000000000d0000000d00000005000000050000000000000005000000020000001100000002000000 - name: Load description: colorIndex: 0 position: serializedVersion: 2 x: 62 y: 109 width: 100 height: 32 isBreakpoint: 0 isSequence: 0 hideUnused: 0 transitions: - fsmEvent: name: FINISHED isSystemEvent: 1 isGlobal: 1 toState: GetRaycaster linkStyle: 0 linkConstraint: 0 colorIndex: 0 actionData: actionNames: - HutongGames.PlayMaker.Actions.Wait customNames: - actionEnabled: 01 actionIsOpen: 01 actionStartIndex: 00000000 actionHashCodes: 48c01101 unityObjectParams: [] fsmGameObjectParams: [] fsmOwnerDefaultParams: [] animationCurveParams: [] functionCallParams: [] fsmTemplateControlParams: [] fsmEventTargetParams: [] fsmPropertyParams: [] layoutOptionParams: [] fsmStringParams: [] fsmObjectParams: [] fsmVarParams: [] fsmArrayParams: [] fsmEnumParams: [] fsmFloatParams: [] fsmIntParams: [] fsmBoolParams: [] fsmVector2Params: [] fsmVector3Params: [] fsmColorParams: [] fsmRectParams: [] fsmQuaternionParams: [] stringParams: [] byteData: 3333333f0046494e495348454400 arrayParamSizes: arrayParamTypes: [] customTypeSizes: customTypeNames: [] paramDataType: 0f0000001700000001000000 paramName: - time - finishEvent - realTime paramDataPos: 00000000050000000d000000 paramByteDataSize: 050000000800000001000000 - name: GetRaycaster description: colorIndex: 0 position: serializedVersion: 2 x: 52 y: 184 width: 109 height: 32 isBreakpoint: 0 isSequence: 0 hideUnused: 0 transitions: - fsmEvent: name: FINISHED isSystemEvent: 1 isGlobal: 1 toState: NotDealingDamage linkStyle: 0 linkConstraint: 0 colorIndex: 0 actionData: actionNames: - HutongGames.PlayMaker.Actions.GetRoot - HutongGames.PlayMaker.Actions.FindChild customNames: - - actionEnabled: 0101 actionIsOpen: 0101 actionStartIndex: 0000000002000000 actionHashCodes: d97b7202f90ba701 unityObjectParams: [] fsmGameObjectParams: - useVariable: 1 name: EnemyRoot tooltip: showInInspector: 0 networkSync: 0 value: {fileID: 0} - useVariable: 1 name: RaycasterFront tooltip: showInInspector: 0 networkSync: 0 value: {fileID: 0} fsmOwnerDefaultParams: - ownerOption: 0 gameObject: useVariable: 0 name: tooltip: showInInspector: 0 networkSync: 0 value: {fileID: 0} - ownerOption: 1 gameObject: useVariable: 1 name: EnemyRoot tooltip: showInInspector: 0 networkSync: 0 value: {fileID: 0} animationCurveParams: [] functionCallParams: [] fsmTemplateControlParams: [] fsmEventTargetParams: [] fsmPropertyParams: [] layoutOptionParams: [] fsmStringParams: - useVariable: 0 name: tooltip: showInInspector: 0 networkSync: 0 value: CharacterPositionCompass/RaycasterFront fsmObjectParams: [] fsmVarParams: [] fsmArrayParams: [] fsmEnumParams: [] fsmFloatParams: [] fsmIntParams: [] fsmBoolParams: [] fsmVector2Params: [] fsmVector3Params: [] fsmColorParams: [] fsmRectParams: [] fsmQuaternionParams: [] stringParams: [] byteData: arrayParamSizes: arrayParamTypes: [] customTypeSizes: customTypeNames: [] paramDataType: 1400000013000000140000001200000013000000 paramName: - gameObject - storeRoot - gameObject - childName - storeResult paramDataPos: 0000000000000000010000000000000001000000 paramByteDataSize: 0000000000000000000000000000000000000000 - name: DealDamagetoEnemy description: colorIndex: 0 position: serializedVersion: 2 x: 426 y: 508 width: 161 height: 32 isBreakpoint: 0 isSequence: 0 hideUnused: 0 transitions: - fsmEvent: name: FINISHED isSystemEvent: 1 isGlobal: 1 toState: NotDealingDamage linkStyle: 0 linkConstraint: 0 colorIndex: 0 actionData: actionNames: - HutongGames.PlayMaker.Actions.SendEvent - HutongGames.PlayMaker.Actions.Wait customNames: - - actionEnabled: 0101 actionIsOpen: 0101 actionStartIndex: 0000000004000000 actionHashCodes: 5e69bb0448c01101 unityObjectParams: [] fsmGameObjectParams: [] fsmOwnerDefaultParams: [] animationCurveParams: [] functionCallParams: [] fsmTemplateControlParams: [] fsmEventTargetParams: - target: 2 excludeSelf: useVariable: 0 name: tooltip: showInInspector: 0 networkSync: 0 value: 0 gameObject: ownerOption: 1 gameObject: useVariable: 1 name: PlayerRoot tooltip: showInInspector: 0 networkSync: 0 value: {fileID: 0} fsmName: useVariable: 0 name: tooltip: showInInspector: 0 networkSync: 0 value: MovementFSM sendToChildren: useVariable: 0 name: tooltip: showInInspector: 0 networkSync: 0 value: 0 fsmComponent: {fileID: 0} fsmPropertyParams: [] layoutOptionParams: [] fsmStringParams: [] fsmObjectParams: [] fsmVarParams: [] fsmArrayParams: [] fsmEnumParams: [] fsmFloatParams: [] fsmIntParams: [] fsmBoolParams: [] fsmVector2Params: [] fsmVector3Params: [] fsmColorParams: [] fsmRectParams: [] fsmQuaternionParams: [] stringParams: [] byteData: 746f4765744869740000000000000ad7233c0046494e495348454400 arrayParamSizes: arrayParamTypes: [] customTypeSizes: customTypeNames: [] paramDataType: 1f000000170000000f000000010000000f0000001700000001000000 paramName: - eventTarget - sendEvent - delay - everyFrame - time - finishEvent - realTime paramDataPos: 0000000000000000080000000d0000000e000000130000001b000000 paramByteDataSize: 00000000080000000500000001000000050000000800000001000000 - name: CheckIfPlayerIsDodging description: colorIndex: 0 position: serializedVersion: 2 x: 420 y: 407 width: 181 height: 64 isBreakpoint: 0 isSequence: 0 hideUnused: 0 transitions: - fsmEvent: name: DealDamage isSystemEvent: 0 isGlobal: 1 toState: DealDamagetoEnemy linkStyle: 0 linkConstraint: 0 colorIndex: 0 - fsmEvent: name: yes isSystemEvent: 0 isGlobal: 1 toState: NotDealingDamage linkStyle: 0 linkConstraint: 0 colorIndex: 0 - fsmEvent: name: FINISHED isSystemEvent: 1 isGlobal: 1 toState: NotDealingDamage linkStyle: 0 linkConstraint: 0 colorIndex: 0 actionData: actionNames: - HutongGames.PlayMaker.Actions.GetRoot - HutongGames.PlayMaker.Actions.GetFsmBool - HutongGames.PlayMaker.Actions.BoolTest - HutongGames.PlayMaker.Actions.Wait customNames: - - - - actionEnabled: 01010101 actionIsOpen: 01010101 actionStartIndex: 0000000002000000070000000b000000 actionHashCodes: d97b720268fece05a4c8bf0048c01101 unityObjectParams: [] fsmGameObjectParams: - useVariable: 1 name: PlayerRoot tooltip: showInInspector: 0 networkSync: 0 value: {fileID: 0} fsmOwnerDefaultParams: - ownerOption: 1 gameObject: useVariable: 1 name: HitObject tooltip: showInInspector: 0 networkSync: 0 value: {fileID: 0} - ownerOption: 1 gameObject: useVariable: 1 name: PlayerRoot tooltip: showInInspector: 0 networkSync: 0 value: {fileID: 0} animationCurveParams: [] functionCallParams: [] fsmTemplateControlParams: [] fsmEventTargetParams: [] fsmPropertyParams: [] layoutOptionParams: [] fsmStringParams: - useVariable: 0 name: tooltip: showInInspector: 0 networkSync: 0 value: MovementFSM - useVariable: 0 name: tooltip: showInInspector: 0 networkSync: 0 value: IsDodging fsmObjectParams: [] fsmVarParams: [] fsmArrayParams: [] fsmEnumParams: [] fsmFloatParams: [] fsmIntParams: [] fsmBoolParams: [] fsmVector2Params: [] fsmVector3Params: [] fsmColorParams: [] fsmRectParams: [] fsmQuaternionParams: [] stringParams: [] byteData: 00014973446f6467696e670000014973446f6467696e677965734465616c44616d61676500cdcccc3d0046494e495348454400 arrayParamSizes: arrayParamTypes: [] customTypeSizes: customTypeNames: [] paramDataType: 14000000130000001400000012000000120000001100000001000000110000001700000017000000010000000f0000001700000001000000 paramName: - gameObject - storeRoot - gameObject - fsmName - variableName - storeValue - everyFrame - boolVariable - isTrue - isFalse - everyFrame - time - finishEvent - realTime paramDataPos: 0000000000000000010000000000000001000000000000000b0000000c000000170000001a00000024000000250000002a00000032000000 paramByteDataSize: 00000000000000000000000000000000000000000b000000010000000b000000030000000a00000001000000050000000800000001000000 events: - name: FINISHED isSystemEvent: 1 isGlobal: 1 - name: DealDamage isSystemEvent: 0 isGlobal: 1 - name: toStrike isSystemEvent: 0 isGlobal: 1 - name: yes isSystemEvent: 0 isGlobal: 1 globalTransitions: - fsmEvent: name: toStrike isSystemEvent: 0 isGlobal: 1 toState: CheckWhatWasHit linkStyle: 0 linkConstraint: 0 colorIndex: 0 variables: floatVariables: [] intVariables: [] boolVariables: - useVariable: 1 name: IsDodging tooltip: showInInspector: 0 networkSync: 0 value: 0 stringVariables: [] vector2Variables: [] vector3Variables: [] colorVariables: [] rectVariables: [] quaternionVariables: [] gameObjectVariables: - useVariable: 1 name: EnemyRoot tooltip: showInInspector: 0 networkSync: 0 value: {fileID: 0} - useVariable: 1 name: HitObject tooltip: showInInspector: 0 networkSync: 0 value: {fileID: 0} - useVariable: 1 name: PlayerRoot tooltip: showInInspector: 0 networkSync: 0 value: {fileID: 0} - useVariable: 1 name: RaycasterFront tooltip: showInInspector: 0 networkSync: 0 value: {fileID: 0} - useVariable: 1 name: SwordCollider tooltip: showInInspector: 0 networkSync: 0 value: {fileID: 0} objectVariables: [] materialVariables: [] textureVariables: [] arrayVariables: [] enumVariables: [] categories: - variableCategoryIDs: description: 'IMPORTANT FSM!!!!!!! COPY IT TO YOUR OWN CHARACTER MODEL!!!! It reads the Animator Events, so it has to be attached to your character, that has Animator Component. It''s for dealing damage to enemies.' docUrl: showStateLabel: 1 maxLoopCount: 0 watermark: password: locked: 0 manualUpdate: 0 keepDelayedEventsOnStateExit: 0 preprocessed: 0 ExposedEvents: [] RestartOnEnable: 1 EnableDebugFlow: 0 EnableBreakpoints: 1 editorFlags: 3 activeStateName: mouseEvents: 0 handleLevelLoaded: 0 handleTriggerEnter2D: 0 handleTriggerExit2D: 0 handleTriggerStay2D: 0 handleCollisionEnter2D: 0 handleCollisionExit2D: 0 handleCollisionStay2D: 0 handleTriggerEnter: 0 handleTriggerExit: 0 handleTriggerStay: 0 handleCollisionEnter: 0 handleCollisionExit: 0 handleCollisionStay: 0 handleParticleCollision: 0 handleControllerColliderHit: 0 handleJointBreak: 0 handleJointBreak2D: 0 handleOnGUI: 0 handleFixedUpdate: 0 handleLateUpdate: 0 handleApplicationEvents: 0 handleLegacyNetworking: 0 handleAnimatorMove: 0 handleAnimatorIK: 0