浏览代码

making the enemy prefab use the Boss viz asset

/main
David Woodruff 4 年前
当前提交
9159e364
共有 5 个文件被更改,包括 232 次插入44 次删除
  1. 262
      Assets/BossRoom/Prefabs/Enemy.prefab
  2. 2
      Assets/BossRoom/Prefabs/Enemy.prefab.meta
  3. 4
      Assets/BossRoom/Prefabs/NetworkingManager.prefab
  4. 2
      Assets/BossRoom/Prefabs/State/BossRoomState.prefab
  5. 6
      Assets/BossRoom/Scripts/Shared/Game/Action/ActionRequestData.cs

262
Assets/BossRoom/Prefabs/Enemy.prefab


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &2457547766902456859
--- !u!114 &1878903107775871435
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3437256802070767247}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: edb78c1621dad5149bb47b96120d3fbf, type: 3}
m_Name:
m_EditorClassIdentifier:
HitPoints:
InternalValue: 0
Mana:
InternalValue: 0
--- !u!114 &3375538458323645294
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3437256802070767247}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9520a47fc61d5ab4ca99cdac2d574909, type: 3}
m_Name:
m_EditorClassIdentifier:
MinZoomDistance: 3
MaxZoomDistance: 30
ZoomSpeed: 3
--- !u!1 &4340979889802297118
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 858400412575613041}
- component: {fileID: -3741253011127748524}
- component: {fileID: -7891119379750261840}
- component: {fileID: 4129073990757611390}
- component: {fileID: 3400408442635813738}
- component: {fileID: 1781832246633869541}
- component: {fileID: -7347463593668903068}
- component: {fileID: -2661490869309078486}
- component: {fileID: -3025025970778375211}
m_Layer: 0
m_Name: Enemy2
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &858400412575613041
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4340979889802297118}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 2663956648913632309}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &-3741253011127748524
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4340979889802297118}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d5a57f767e5e46a458fc5d3c628d0cbb, type: 3}
m_Name:
m_EditorClassIdentifier:
NetworkedInstanceId: 0
PrefabHash: 13972572995013741903
PrefabHashGenerator: Enemy2
AlwaysReplicateAsRoot: 0
DontDestroyWithOwner: 0
--- !u!114 &-7891119379750261840
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4340979889802297118}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: edb78c1621dad5149bb47b96120d3fbf, type: 3}
m_Name:
m_EditorClassIdentifier:
HitPoints:
InternalValue: 0
Mana:
InternalValue: 0
--- !u!195 &4129073990757611390
NavMeshAgent:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4340979889802297118}
m_Enabled: 0
m_AgentTypeID: 0
m_Radius: 0.5
m_Speed: 3.5
m_Acceleration: 8
avoidancePriority: 50
m_AngularSpeed: 120
m_StoppingDistance: 0
m_AutoTraverseOffMeshLink: 1
m_AutoBraking: 1
m_AutoRepath: 1
m_Height: 2
m_BaseOffset: 0
m_WalkableMask: 4294967295
m_ObstacleAvoidanceType: 4
--- !u!54 &3400408442635813738
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4340979889802297118}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 1
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!114 &1781832246633869541
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4340979889802297118}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fdad0914904cc1e47933ecd7a58514ac, type: 3}
m_Name:
m_EditorClassIdentifier:
m_MovementSpeed: 3
--- !u!136 &-7347463593668903068
CapsuleCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4340979889802297118}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
m_Radius: 1.3
m_Height: 6
m_Direction: 1
m_Center: {x: 0, y: 3, z: 0}
--- !u!114 &-2661490869309078486
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4340979889802297118}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 920a440eb254ba348915767fd046027a, type: 3}
m_Name:
m_EditorClassIdentifier:
IsNPC: 1
DetectRange: 10
--- !u!114 &-3025025970778375211
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4340979889802297118}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 797d92969c575574d868e069887e8486, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &2025951435693425104
m_TransformParent: {fileID: 0}
m_TransformParent: {fileID: 858400412575613041}
- target: {fileID: 4600110157238723776, guid: bb87f9bac2595f8499c048016c4b2e1d, type: 3}
propertyPath: m_Enabled
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4600110157238723781, guid: bb87f9bac2595f8499c048016c4b2e1d, type: 3}
- target: {fileID: 3723974146209228639, guid: 08c3914aa4064d349a429bc090494787, type: 3}
value: Enemy
value: Boss2
- target: {fileID: 4600110157238723790, guid: bb87f9bac2595f8499c048016c4b2e1d, type: 3}
propertyPath: PrefabHash
value: 7042126347811011599
objectReference: {fileID: 0}
- target: {fileID: 4600110157238723790, guid: bb87f9bac2595f8499c048016c4b2e1d, type: 3}
propertyPath: PrefabHashGenerator
value: Enemy
objectReference: {fileID: 0}
- target: {fileID: 4600110157238723791, guid: bb87f9bac2595f8499c048016c4b2e1d, type: 3}
- target: {fileID: 4099936395697225189, guid: 08c3914aa4064d349a429bc090494787, type: 3}
- target: {fileID: 4600110157238723791, guid: bb87f9bac2595f8499c048016c4b2e1d, type: 3}
- target: {fileID: 4099936395697225189, guid: 08c3914aa4064d349a429bc090494787, type: 3}
- target: {fileID: 4600110157238723791, guid: bb87f9bac2595f8499c048016c4b2e1d, type: 3}
- target: {fileID: 4099936395697225189, guid: 08c3914aa4064d349a429bc090494787, type: 3}
- target: {fileID: 4600110157238723791, guid: bb87f9bac2595f8499c048016c4b2e1d, type: 3}
- target: {fileID: 4099936395697225189, guid: 08c3914aa4064d349a429bc090494787, type: 3}
- target: {fileID: 4600110157238723791, guid: bb87f9bac2595f8499c048016c4b2e1d, type: 3}
- target: {fileID: 4099936395697225189, guid: 08c3914aa4064d349a429bc090494787, type: 3}
value: 1
value: 0.25012913
- target: {fileID: 4600110157238723791, guid: bb87f9bac2595f8499c048016c4b2e1d, type: 3}
- target: {fileID: 4099936395697225189, guid: 08c3914aa4064d349a429bc090494787, type: 3}
value: 0
value: -0
- target: {fileID: 4600110157238723791, guid: bb87f9bac2595f8499c048016c4b2e1d, type: 3}
- target: {fileID: 4099936395697225189, guid: 08c3914aa4064d349a429bc090494787, type: 3}
value: 0
value: -0.9682125
- target: {fileID: 4600110157238723791, guid: bb87f9bac2595f8499c048016c4b2e1d, type: 3}
- target: {fileID: 4099936395697225189, guid: 08c3914aa4064d349a429bc090494787, type: 3}
value: 0
value: -0
- target: {fileID: 4600110157238723791, guid: bb87f9bac2595f8499c048016c4b2e1d, type: 3}
- target: {fileID: 4099936395697225189, guid: 08c3914aa4064d349a429bc090494787, type: 3}
- target: {fileID: 4600110157238723791, guid: bb87f9bac2595f8499c048016c4b2e1d, type: 3}
- target: {fileID: 4099936395697225189, guid: 08c3914aa4064d349a429bc090494787, type: 3}
value: 0
value: -151.03001
- target: {fileID: 4600110157238723791, guid: bb87f9bac2595f8499c048016c4b2e1d, type: 3}
- target: {fileID: 4099936395697225189, guid: 08c3914aa4064d349a429bc090494787, type: 3}
- target: {fileID: 4602672899881656135, guid: bb87f9bac2595f8499c048016c4b2e1d, type: 3}
propertyPath: IsNPC
value: 1
objectReference: {fileID: 0}
m_SourcePrefab: {fileID: 100100000, guid: bb87f9bac2595f8499c048016c4b2e1d, type: 3}
m_SourcePrefab: {fileID: 100100000, guid: 08c3914aa4064d349a429bc090494787, type: 3}
--- !u!1 &3437256802070767247 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 3723974146209228639, guid: 08c3914aa4064d349a429bc090494787, type: 3}
m_PrefabInstance: {fileID: 2025951435693425104}
m_PrefabAsset: {fileID: 0}
--- !u!4 &2663956648913632309 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 4099936395697225189, guid: 08c3914aa4064d349a429bc090494787, type: 3}
m_PrefabInstance: {fileID: 2025951435693425104}
m_PrefabAsset: {fileID: 0}

2
Assets/BossRoom/Prefabs/Enemy.prefab.meta


fileFormatVersion: 2
guid: febd58976027e484884aa5357092da15
guid: 5f8daaa54415e5e41b5162cd13121359
PrefabImporter:
externalObjects: {}
userData:

4
Assets/BossRoom/Prefabs/NetworkingManager.prefab


PlayerPrefab: 0
- Prefab: {fileID: 297185343939699586, guid: 8b9c63e7d70c5ff48a03aad51e17103c, type: 3}
PlayerPrefab: 0
- Prefab: {fileID: 2147136737739531998, guid: febd58976027e484884aa5357092da15, type: 3}
- Prefab: {fileID: 4340979889802297118, guid: 5f8daaa54415e5e41b5162cd13121359, type: 3}
PlayerPrefab: 0
PlayerPrefabHash:
id: 0

EventTickrate: 100
EventTickrate: 30
ClientConnectionBufferTimeout: 10
ConnectionApproval: 1
ConnectionData:

2
Assets/BossRoom/Prefabs/State/BossRoomState.prefab


m_Name:
m_EditorClassIdentifier:
PlayerPrefab: {fileID: 4600110157238723790, guid: bb87f9bac2595f8499c048016c4b2e1d, type: 3}
EnemyPrefab: {fileID: 2147136737739531989, guid: febd58976027e484884aa5357092da15, type: 3}
EnemyPrefab: {fileID: -3741253011127748524, guid: 5f8daaa54415e5e41b5162cd13121359, type: 3}

6
Assets/BossRoom/Scripts/Shared/Game/Action/ActionRequestData.cs


{
{ ActionType.TANK_BASEATTACK , new List<ActionDescription>
{
{new ActionDescription{Logic=ActionLogic.MELEE, Amount=10, ManaCost=2, Duration_s=0.5f, Range=1f, Anim="Todo" } }, //level 1
{new ActionDescription{Logic=ActionLogic.MELEE, Amount=15, ManaCost=2, Duration_s=0.5f, Range=1f, Anim="Todo" } }, //level 2
{new ActionDescription{Logic=ActionLogic.MELEE, Amount=20, ManaCost=2, Duration_s=0.5f, Range=1f, Anim="Todo" } }, //level 3
{new ActionDescription{Logic=ActionLogic.MELEE, Amount=10, ManaCost=2, Duration_s=0.5f, Range=4f, Anim="Todo" } }, //level 1
{new ActionDescription{Logic=ActionLogic.MELEE, Amount=15, ManaCost=2, Duration_s=0.5f, Range=4f, Anim="Todo" } }, //level 2
{new ActionDescription{Logic=ActionLogic.MELEE, Amount=20, ManaCost=2, Duration_s=0.5f, Range=4f, Anim="Todo" } }, //level 3
}
},

正在加载...
取消
保存