Compare commits
4 Commits
95db5ce4f3
...
f73c660579
| Author | SHA1 | Date | |
|---|---|---|---|
| f73c660579 | |||
| 2f624f621c | |||
| 7175edc1d1 | |||
| 2e612f21ca |
@@ -1,5 +1,30 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1101 &-8793749239544201940
|
||||
AnimatorStateTransition:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name:
|
||||
m_Conditions:
|
||||
- m_ConditionMode: 1
|
||||
m_ConditionEvent: Revive
|
||||
m_EventTreshold: 1
|
||||
m_DstStateMachine: {fileID: 0}
|
||||
m_DstState: {fileID: -8582474753685269919}
|
||||
m_Solo: 0
|
||||
m_Mute: 0
|
||||
m_IsExit: 0
|
||||
serializedVersion: 3
|
||||
m_TransitionDuration: 0.25
|
||||
m_TransitionOffset: 0
|
||||
m_ExitTime: 0.6875
|
||||
m_HasExitTime: 1
|
||||
m_HasFixedDuration: 1
|
||||
m_InterruptionSource: 0
|
||||
m_OrderedInterruption: 1
|
||||
m_CanTransitionToSelf: 1
|
||||
--- !u!1102 &-8582474753685269919
|
||||
AnimatorState:
|
||||
serializedVersion: 6
|
||||
@@ -80,7 +105,8 @@ AnimatorState:
|
||||
m_Name: Death
|
||||
m_Speed: 1
|
||||
m_CycleOffset: 0
|
||||
m_Transitions: []
|
||||
m_Transitions:
|
||||
- {fileID: -8793749239544201940}
|
||||
m_StateMachineBehaviours: []
|
||||
m_Position: {x: 50, y: 50, z: 0}
|
||||
m_IKOnFeet: 0
|
||||
@@ -105,7 +131,7 @@ AnimatorStateTransition:
|
||||
m_Name:
|
||||
m_Conditions:
|
||||
- m_ConditionMode: 1
|
||||
m_ConditionEvent: bIsDeath
|
||||
m_ConditionEvent: Die
|
||||
m_EventTreshold: 0
|
||||
m_DstStateMachine: {fileID: 0}
|
||||
m_DstState: {fileID: -6405359010994864473}
|
||||
@@ -232,8 +258,14 @@ AnimatorController:
|
||||
m_DefaultInt: 0
|
||||
m_DefaultBool: 0
|
||||
m_Controller: {fileID: 9100000}
|
||||
- m_Name: bIsDeath
|
||||
m_Type: 4
|
||||
- m_Name: Die
|
||||
m_Type: 9
|
||||
m_DefaultFloat: 0
|
||||
m_DefaultInt: 0
|
||||
m_DefaultBool: 0
|
||||
m_Controller: {fileID: 9100000}
|
||||
- m_Name: Revive
|
||||
m_Type: 9
|
||||
m_DefaultFloat: 0
|
||||
m_DefaultInt: 0
|
||||
m_DefaultBool: 0
|
||||
|
||||
BIN
Assets/Models/building_blacksmith_blue.fbx
Normal file
BIN
Assets/Models/building_blacksmith_blue.fbx
Normal file
Binary file not shown.
110
Assets/Models/building_blacksmith_blue.fbx.meta
Normal file
110
Assets/Models/building_blacksmith_blue.fbx.meta
Normal file
@@ -0,0 +1,110 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d40509d02a450cd45b817e95de22ef8b
|
||||
ModelImporter:
|
||||
serializedVersion: 24200
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
materials:
|
||||
materialImportMode: 2
|
||||
materialName: 0
|
||||
materialSearch: 1
|
||||
materialLocation: 1
|
||||
animations:
|
||||
legacyGenerateAnimations: 4
|
||||
bakeSimulation: 0
|
||||
resampleCurves: 1
|
||||
optimizeGameObjects: 0
|
||||
removeConstantScaleCurves: 0
|
||||
motionNodeName:
|
||||
animationImportErrors:
|
||||
animationImportWarnings:
|
||||
animationRetargetingWarnings:
|
||||
animationDoRetargetingWarnings: 0
|
||||
importAnimatedCustomProperties: 0
|
||||
importConstraints: 0
|
||||
animationCompression: 1
|
||||
animationRotationError: 0.5
|
||||
animationPositionError: 0.5
|
||||
animationScaleError: 0.5
|
||||
animationWrapMode: 0
|
||||
extraExposedTransformPaths: []
|
||||
extraUserProperties: []
|
||||
clipAnimations: []
|
||||
isReadable: 0
|
||||
meshes:
|
||||
lODScreenPercentages: []
|
||||
globalScale: 4
|
||||
meshCompression: 0
|
||||
addColliders: 0
|
||||
useSRGBMaterialColor: 1
|
||||
sortHierarchyByName: 1
|
||||
importPhysicalCameras: 1
|
||||
importVisibility: 1
|
||||
importBlendShapes: 1
|
||||
importCameras: 1
|
||||
importLights: 1
|
||||
nodeNameCollisionStrategy: 1
|
||||
fileIdsGeneration: 2
|
||||
swapUVChannels: 0
|
||||
generateSecondaryUV: 0
|
||||
useFileUnits: 1
|
||||
keepQuads: 0
|
||||
weldVertices: 1
|
||||
bakeAxisConversion: 0
|
||||
preserveHierarchy: 0
|
||||
skinWeightsMode: 0
|
||||
maxBonesPerVertex: 4
|
||||
minBoneWeight: 0.001
|
||||
optimizeBones: 1
|
||||
generateMeshLods: 0
|
||||
meshLodGenerationFlags: 0
|
||||
maximumMeshLod: -1
|
||||
meshOptimizationFlags: -1
|
||||
indexFormat: 0
|
||||
secondaryUVAngleDistortion: 8
|
||||
secondaryUVAreaDistortion: 15.000001
|
||||
secondaryUVHardAngle: 88
|
||||
secondaryUVMarginMethod: 1
|
||||
secondaryUVMinLightmapResolution: 40
|
||||
secondaryUVMinObjectScale: 1
|
||||
secondaryUVPackMargin: 4
|
||||
useFileScale: 1
|
||||
strictVertexDataChecks: 0
|
||||
tangentSpace:
|
||||
normalSmoothAngle: 60
|
||||
normalImportMode: 0
|
||||
tangentImportMode: 3
|
||||
normalCalculationMode: 4
|
||||
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
|
||||
blendShapeNormalImportMode: 1
|
||||
normalSmoothingSource: 0
|
||||
referencedClips: []
|
||||
importAnimation: 1
|
||||
humanDescription:
|
||||
serializedVersion: 3
|
||||
human: []
|
||||
skeleton: []
|
||||
armTwist: 0.5
|
||||
foreArmTwist: 0.5
|
||||
upperLegTwist: 0.5
|
||||
legTwist: 0.5
|
||||
armStretch: 0.05
|
||||
legStretch: 0.05
|
||||
feetSpacing: 0
|
||||
globalScale: 4
|
||||
rootMotionBoneName:
|
||||
hasTranslationDoF: 0
|
||||
hasExtraRoot: 0
|
||||
skeletonHasParents: 1
|
||||
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||
autoGenerateAvatarMappingIfUnspecified: 1
|
||||
animationType: 2
|
||||
humanoidOversampling: 1
|
||||
avatarSetup: 0
|
||||
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
|
||||
importBlendShapeDeformPercent: 1
|
||||
remapMaterialsIfMaterialImportModeIsNone: 0
|
||||
additionalBone: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -14,7 +14,6 @@ GameObject:
|
||||
- component: {fileID: 2964705630284685173}
|
||||
- component: {fileID: 2236804103334722056}
|
||||
- component: {fileID: -7963177287827765112}
|
||||
- component: {fileID: 7481534291960023794}
|
||||
m_Layer: 7
|
||||
m_Name: Core
|
||||
m_TagString: Untagged
|
||||
@@ -50,7 +49,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: d5a57f767e5e46a458fc5d3c628d0cbb, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Unity.Netcode.Runtime::Unity.Netcode.NetworkObject
|
||||
GlobalObjectIdHash: 3998537868
|
||||
GlobalObjectIdHash: 615747208
|
||||
InScenePlacedSourceGlobalObjectIdHash: 615747208
|
||||
DeferredDespawnTick: 0
|
||||
Ownership: 1
|
||||
@@ -161,24 +160,6 @@ MonoBehaviour:
|
||||
minHeightForDistantVisibility: 3
|
||||
useExploredMaterial: 0
|
||||
exploredMaterial: {fileID: 0}
|
||||
--- !u!114 &7481534291960023794
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8124290768227340041}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 9674643eb301f6c45875564495e1bb66, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::Northbound.InteractableHoverUI
|
||||
iconImage: {fileID: 2030466806768584547, guid: 74efcc25fc6310e4f9fbea1c636de6dd, type: 3}
|
||||
textText: {fileID: 0}
|
||||
uiContainer: {fileID: 1681682409161624864, guid: 74efcc25fc6310e4f9fbea1c636de6dd, type: 3}
|
||||
heightOffset: 2.5
|
||||
fadeSpeed: 5
|
||||
scaleMultiplier: 0.01
|
||||
--- !u!1001 &1237105051606736037
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@@ -724,6 +724,7 @@ Transform:
|
||||
- {fileID: 1138174508}
|
||||
- {fileID: 109813795}
|
||||
- {fileID: 639696858}
|
||||
- {fileID: 953248391}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1001 &629469723
|
||||
@@ -1181,6 +1182,68 @@ Transform:
|
||||
m_Children: []
|
||||
m_Father: {fileID: 576429380}
|
||||
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
|
||||
--- !u!1001 &804683300
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 953248391}
|
||||
m_Modifications:
|
||||
- target: {fileID: -8679921383154817045, guid: d40509d02a450cd45b817e95de22ef8b, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: d40509d02a450cd45b817e95de22ef8b, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: d40509d02a450cd45b817e95de22ef8b, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: d40509d02a450cd45b817e95de22ef8b, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: d40509d02a450cd45b817e95de22ef8b, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0.00000008146034
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: d40509d02a450cd45b817e95de22ef8b, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: d40509d02a450cd45b817e95de22ef8b, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: d40509d02a450cd45b817e95de22ef8b, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: d40509d02a450cd45b817e95de22ef8b, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: d40509d02a450cd45b817e95de22ef8b, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 919132149155446097, guid: d40509d02a450cd45b817e95de22ef8b, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: building_blacksmith_blue
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: d40509d02a450cd45b817e95de22ef8b, type: 3}
|
||||
--- !u!4 &804683301 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: d40509d02a450cd45b817e95de22ef8b, type: 3}
|
||||
m_PrefabInstance: {fileID: 804683300}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &860732960
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -1436,6 +1499,60 @@ Transform:
|
||||
m_Children: []
|
||||
m_Father: {fileID: 640318137}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &953248390
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 953248391}
|
||||
- component: {fileID: 953248392}
|
||||
m_Layer: 0
|
||||
m_Name: Blacksmith
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &953248391
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 953248390}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 1, z: 0, w: 0}
|
||||
m_LocalPosition: {x: 20, y: 0, z: 10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 804683301}
|
||||
m_Father: {fileID: 576429380}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}
|
||||
--- !u!65 &953248392
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 953248390}
|
||||
m_Material: {fileID: 0}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_IsTrigger: 0
|
||||
m_ProvidesContacts: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Size: {x: 1, y: 1, z: 1}
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &955933983
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -1465,7 +1582,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 2ed03291507256a47913eae4dee429c7, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::Northbound.CoreResourceManager
|
||||
mainCore: {fileID: 8940572951313384066}
|
||||
mainCore: {fileID: 8940572951313384076}
|
||||
--- !u!4 &955933985
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -3348,42 +3465,14 @@ PrefabInstance:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 576429380}
|
||||
m_Modifications:
|
||||
- target: {fileID: -7963177287827765112, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3}
|
||||
propertyPath: updateInterval
|
||||
value: 0.2
|
||||
- target: {fileID: 2236804103334722056, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3}
|
||||
propertyPath: m_Center.y
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1287070985890992582, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3}
|
||||
propertyPath: equipmentData.socketName
|
||||
- target: {fileID: 2964705630284685173, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3}
|
||||
propertyPath: buildingData
|
||||
value:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1287070985890992582, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3}
|
||||
propertyPath: interactionAnimationTrigger
|
||||
value:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1630774755871243086, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1630774755871243086, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3}
|
||||
propertyPath: m_LocalScale.y
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1630774755871243086, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3}
|
||||
propertyPath: m_LocalScale.z
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2236804103334722056, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3}
|
||||
propertyPath: m_Size.x
|
||||
value: 9
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2236804103334722056, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3}
|
||||
propertyPath: m_Size.y
|
||||
value: 9
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2236804103334722056, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3}
|
||||
propertyPath: m_Size.z
|
||||
value: 9
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5173262576415873253, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3}
|
||||
propertyPath: GlobalObjectIdHash
|
||||
value: 3998537868
|
||||
@@ -3432,8 +3521,7 @@ PrefabInstance:
|
||||
propertyPath: m_Name
|
||||
value: Core
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents:
|
||||
- {fileID: 7481534291960023794, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
@@ -3448,8 +3536,20 @@ PrefabInstance:
|
||||
m_Modifications:
|
||||
- target: {fileID: -7869551286978933574, guid: f395fcc064a3a834ba957327f1387c19, type: 3}
|
||||
propertyPath: rechargeAmount
|
||||
value: 3
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -7869551286978933574, guid: f395fcc064a3a834ba957327f1387c19, type: 3}
|
||||
propertyPath: rechargeInterval
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -7869551286978933574, guid: f395fcc064a3a834ba957327f1387c19, type: 3}
|
||||
propertyPath: resourcesPerGathering
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -7869551286978933574, guid: f395fcc064a3a834ba957327f1387c19, type: 3}
|
||||
propertyPath: equipmentData.equipmentPrefab
|
||||
value:
|
||||
objectReference: {fileID: 8294708185945415980, guid: eda89876457aa6143b1bef3330e8f7fb, type: 3}
|
||||
- target: {fileID: 3247786716306397435, guid: f395fcc064a3a834ba957327f1387c19, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -30
|
||||
@@ -3503,7 +3603,12 @@ PrefabInstance:
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: f395fcc064a3a834ba957327f1387c19, type: 3}
|
||||
--- !u!114 &8940572951313384066 stripped
|
||||
--- !u!4 &8940572951313384071 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 8064559726283331702, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3}
|
||||
m_PrefabInstance: {fileID: 4786254629656932894}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &8940572951313384076 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 1287070985890992582, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3}
|
||||
m_PrefabInstance: {fileID: 4786254629656932894}
|
||||
@@ -3514,11 +3619,6 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 7c94274e2af2c8d4f827fe52b26c4410, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::Northbound.Core
|
||||
--- !u!4 &8940572951313384071 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 8064559726283331702, guid: e56926eda34629f4fbf3e4c53f0f8bd4, type: 3}
|
||||
m_PrefabInstance: {fileID: 4786254629656932894}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1660057539 &9223372036854775807
|
||||
SceneRoots:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
Binary file not shown.
@@ -41,16 +41,6 @@ namespace Northbound
|
||||
{
|
||||
_building = GetComponent<Building>();
|
||||
_teamMember = GetComponent<ITeamMember>();
|
||||
|
||||
if (_building == null)
|
||||
{
|
||||
Debug.LogError($"<color=red>[AutoTargetSystem] {gameObject.name}에 Building 컴포넌트가 없습니다!</color>");
|
||||
}
|
||||
|
||||
if (_teamMember == null)
|
||||
{
|
||||
Debug.LogError($"<color=red>[AutoTargetSystem] {gameObject.name}에 ITeamMember 컴포넌트가 없습니다!</color>");
|
||||
}
|
||||
}
|
||||
|
||||
private void Update()
|
||||
@@ -72,10 +62,9 @@ namespace Northbound
|
||||
|
||||
// 범위 내 모든 콜라이더 탐지
|
||||
Collider[] colliders = Physics.OverlapSphere(transform.position, detectionRange, targetLayer);
|
||||
|
||||
|
||||
if (showDebugInfo && colliders.Length > 0)
|
||||
{
|
||||
Debug.Log($"<color=cyan>[AutoTarget] {gameObject.name}이(가) {colliders.Length}개의 오브젝트를 감지했습니다.</color>");
|
||||
}
|
||||
|
||||
GameObject closestEnemy = null;
|
||||
@@ -100,21 +89,16 @@ namespace Northbound
|
||||
}
|
||||
}
|
||||
|
||||
if (targetTeam == null)
|
||||
{
|
||||
if (showDebugInfo)
|
||||
{
|
||||
Debug.Log($"<color=yellow>[AutoTarget] {col.gameObject.name}에 ITeamMember가 없습니다.</color>");
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (targetTeam == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// 적대 관계 확인
|
||||
bool canAttack = TeamManager.CanAttack(_teamMember, targetTeam);
|
||||
|
||||
|
||||
if (showDebugInfo)
|
||||
{
|
||||
Debug.Log($"<color=yellow>[AutoTarget] {gameObject.name} ({TeamManager.GetTeamName(_teamMember.GetTeam())}) → {col.gameObject.name} ({TeamManager.GetTeamName(targetTeam.GetTeam())}): 공격가능={canAttack}</color>");
|
||||
}
|
||||
|
||||
if (!canAttack)
|
||||
@@ -153,22 +137,14 @@ namespace Northbound
|
||||
_lastAttackTime = Time.time;
|
||||
|
||||
// 모든 클라이언트에 빔 효과 표시
|
||||
ShowAttackBeamClientRpc(beamStart, beamEnd);
|
||||
|
||||
var targetTeam = closestEnemy.GetComponent<ITeamMember>() ??
|
||||
closestEnemy.GetComponentInParent<ITeamMember>() ??
|
||||
closestEnemy.GetComponentInChildren<ITeamMember>();
|
||||
|
||||
Debug.Log($"<color=red>[AutoTarget] {gameObject.name} ({TeamManager.GetTeamName(_teamMember.GetTeam())})이(가) {closestEnemy.name} ({TeamManager.GetTeamName(targetTeam?.GetTeam() ?? TeamType.Neutral)})을(를) 공격! (거리: {closestDistance:F2}m, 데미지: {attackDamage})</color>");
|
||||
ShowAttackBeamClientRpc(beamStart, beamEnd);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogWarning($"<color=orange>[AutoTarget] {closestEnemy.name}에 IDamageable이 없습니다.</color>");
|
||||
}
|
||||
}
|
||||
else if (showDebugInfo && colliders.Length > 0)
|
||||
{
|
||||
Debug.Log($"<color=yellow>[AutoTarget] {gameObject.name}이(가) 공격 가능한 적을 찾지 못했습니다.</color>");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -200,15 +200,6 @@ namespace Northbound
|
||||
DestroyPreview();
|
||||
ClearDragPreviews();
|
||||
}
|
||||
|
||||
Debug.Log($"[BuildingPlacement] 건설 모드 {(isBuildModeActive ? "활성화" : "비활성화")}");
|
||||
Debug.Log($"[BuildingPlacement] Preview object: {(previewObject != null ? "CREATED" : "NULL")}");
|
||||
if (previewObject != null)
|
||||
{
|
||||
Debug.Log($"[BuildingPlacement] Preview position: {previewObject.transform.position}");
|
||||
Debug.Log($"[BuildingPlacement] Preview scale: {previewObject.transform.localScale}");
|
||||
Debug.Log($"[BuildingPlacement] Preview active: {previewObject.activeSelf}");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -240,7 +231,6 @@ namespace Northbound
|
||||
CreatePreview();
|
||||
}
|
||||
|
||||
Debug.Log($"[BuildingPlacement] 건물 선택됨: {BuildingManager.Instance.availableBuildings[index].buildingName}");
|
||||
}
|
||||
|
||||
private void CreatePreview()
|
||||
@@ -251,10 +241,6 @@ namespace Northbound
|
||||
return;
|
||||
}
|
||||
|
||||
Debug.Log($"<color=cyan>[BuildingPlacement] Creating preview...</color>");
|
||||
Debug.Log($"<color=cyan>[BuildingPlacement] BuildingManager.availableBuildings.Count: {BuildingManager.Instance.availableBuildings.Count}</color>");
|
||||
Debug.Log($"<color=cyan>[BuildingPlacement] selectedBuildingIndex: {selectedBuildingIndex}</color>");
|
||||
|
||||
if (selectedBuildingIndex < 0 || selectedBuildingIndex >= BuildingManager.Instance.availableBuildings.Count)
|
||||
{
|
||||
Debug.LogWarning($"[BuildingPlacement] 유효하지 않은 건물 인덱스: {selectedBuildingIndex}");
|
||||
@@ -274,9 +260,6 @@ namespace Northbound
|
||||
return;
|
||||
}
|
||||
|
||||
Debug.Log($"<color=green>[BuildingPlacement] TowerData: {data.buildingName}, Prefab: {data.prefab.name}</color>");
|
||||
Debug.Log($"<color=green>[BuildingPlacement] Prefab scale: {data.prefab.transform.localScale}</color>");
|
||||
|
||||
// 완성 건물 프리팹으로 프리뷰 생성 (사용자가 완성 모습을 볼 수 있도록)
|
||||
previewObject = Instantiate(data.prefab);
|
||||
|
||||
@@ -318,7 +301,6 @@ namespace Northbound
|
||||
obstacle.enabled = false;
|
||||
}
|
||||
|
||||
Debug.Log($"[BuildingPlacement] 프리뷰 생성됨: {data.buildingName}");
|
||||
}
|
||||
|
||||
private void DestroyPreview()
|
||||
|
||||
@@ -194,7 +194,7 @@ namespace Northbound
|
||||
return false;
|
||||
|
||||
// 플레이어가 자원을 가지고 있는지 확인
|
||||
if (NetworkManager.Singleton != null &&
|
||||
if (NetworkManager.Singleton != null &&
|
||||
NetworkManager.Singleton.ConnectedClients.TryGetValue(playerId, out var client))
|
||||
{
|
||||
if (client.PlayerObject != null)
|
||||
|
||||
@@ -76,7 +76,6 @@ namespace Northbound
|
||||
{
|
||||
if (creepPrefabs.Count == 0)
|
||||
{
|
||||
Debug.LogWarning($"[CreepCamp] No creep prefabs assigned!");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -91,14 +90,12 @@ namespace Northbound
|
||||
GameObject selectedCreep = SelectCreepByCost(remainingCost);
|
||||
if (selectedCreep == null)
|
||||
{
|
||||
Debug.LogWarning($"[CreepCamp] No affordable creeps. Remaining cost: {remainingCost:F2}");
|
||||
break;
|
||||
}
|
||||
|
||||
CreepData creepData = GetCreepDataFromPrefab(selectedCreep);
|
||||
if (creepData == null)
|
||||
{
|
||||
Debug.LogWarning($"[CreepCamp] Could not get creep data from {selectedCreep.name}");
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -106,8 +103,6 @@ namespace Northbound
|
||||
remainingCost -= creepData.cost;
|
||||
spawnedCount++;
|
||||
}
|
||||
|
||||
Debug.Log($"<color=green>[CreepCamp] Spawned {spawnedCount} creeps (Cost budget: {_campCostBudget * _campStrength:F2}, Used: {(_campCostBudget * _campStrength) - remainingCost:F2})</color>");
|
||||
}
|
||||
|
||||
private GameObject SelectCreepByCost(float remainingCost)
|
||||
@@ -179,7 +174,6 @@ namespace Northbound
|
||||
{
|
||||
if (resourcePickupPrefab == null)
|
||||
{
|
||||
Debug.LogWarning($"[CreepCamp] No resource pickup prefab assigned!");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -188,7 +182,6 @@ namespace Northbound
|
||||
_resourcePickup = pickup.GetComponent<ResourcePickup>();
|
||||
if (_resourcePickup == null)
|
||||
{
|
||||
Debug.LogError($"[CreepCamp] ResourcePickup component not found on prefab!");
|
||||
Destroy(pickup);
|
||||
return;
|
||||
}
|
||||
@@ -207,8 +200,6 @@ namespace Northbound
|
||||
|
||||
// 비활성화는 ServerRpc를 통해 처리
|
||||
DisablePickupClientRpc();
|
||||
|
||||
Debug.Log($"<color=cyan>[CreepCamp] Resource pickup spawned (Amount: {_resourcePickup.resourceAmount})</color>");
|
||||
}
|
||||
|
||||
private void HandleCreepDeath(EnemyUnit deadCreep)
|
||||
@@ -226,13 +217,10 @@ namespace Northbound
|
||||
// 리스트에서 해당 creep 제거
|
||||
_spawnedCreeps.Remove(deadCreep);
|
||||
|
||||
Debug.Log($"<color=orange>[CreepCamp] Creep died. Remaining creeps: {_spawnedCreeps.Count}</color>");
|
||||
|
||||
// 모든 creep이 처치되었으면 ResourcePickup 활성화
|
||||
if (_spawnedCreeps.Count == 0 && _resourcePickup != null)
|
||||
{
|
||||
EnableResourcePickupClientRpc();
|
||||
Debug.Log($"<color=green>[CreepCamp] All creeps defeated! Resource pickup enabled.</color>");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -297,10 +285,6 @@ namespace Northbound
|
||||
_deathHandlers[enemyUnit] = handler;
|
||||
enemyUnit.OnDeath += handler;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogWarning($"[CreepCamp] EnemyUnit component not found on creep prefab {prefab.name}");
|
||||
}
|
||||
|
||||
networkObj.SpawnWithOwnership(NetworkManager.Singleton.LocalClientId);
|
||||
}
|
||||
|
||||
@@ -31,7 +31,6 @@ namespace Northbound
|
||||
{
|
||||
if (creepData == null)
|
||||
{
|
||||
Debug.LogWarning("[CreepDataComponent] creepData is null", this);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -101,16 +101,15 @@ namespace Northbound
|
||||
_agent.acceleration = 8f;
|
||||
_agent.angularSpeed = 120f;
|
||||
_agent.stoppingDistance = attackRange * 0.7f;
|
||||
_agent.autoBraking = true;
|
||||
_agent.updateRotation = true;
|
||||
_agent.updateUpAxis = false;
|
||||
|
||||
if (!_agent.isOnNavMesh)
|
||||
{
|
||||
Debug.LogWarning($"<color=orange>[EnemyAI] {gameObject.name}이(가) NavMesh 위에 있지 않습니다!</color>");
|
||||
}
|
||||
|
||||
if (aiType == TeamType.Monster)
|
||||
_agent.autoBraking = true;
|
||||
_agent.updateRotation = true;
|
||||
_agent.updateUpAxis = false;
|
||||
|
||||
if (!_agent.isOnNavMesh)
|
||||
{
|
||||
}
|
||||
|
||||
if (aiType == TeamType.Monster)
|
||||
{
|
||||
FindCore();
|
||||
TransitionToState(EnemyAIState.MoveToCore);
|
||||
@@ -248,7 +247,7 @@ namespace Northbound
|
||||
GameObject target = GetTargetPlayer();
|
||||
if (target == null)
|
||||
{
|
||||
if (showDebugInfo) Debug.Log("<color=red>[EnemyAI] 타겟 상실 - 상태 해제</color>");
|
||||
if (showDebugInfo) {}
|
||||
OnLostTarget();
|
||||
return;
|
||||
}
|
||||
@@ -417,19 +416,11 @@ namespace Northbound
|
||||
{
|
||||
damageable.TakeDamage(attackDamage, NetworkObjectId);
|
||||
_lastAttackTime = Time.time;
|
||||
|
||||
OnAttackPerformed?.Invoke(target);
|
||||
|
||||
if (showDebugInfo)
|
||||
Debug.Log($"<color=red>[EnemyAI] {gameObject.name} -> {target.name} 타격 성공! (데미지: {attackDamage})</color>");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// 3. 만약 IDamageable을 못 찾았다면 로그를 남겨서 범인을 찾습니다.
|
||||
if (showDebugInfo)
|
||||
Debug.LogWarning($"<color=yellow>[EnemyAI] {target.name}에 IDamageable 스크립트가 없습니다!</color>");
|
||||
|
||||
// 공격할 수 없는 대상이면 상태를 해제합니다.
|
||||
OnLostTarget();
|
||||
}
|
||||
@@ -504,9 +495,9 @@ namespace Northbound
|
||||
// 사망 상태로 전환
|
||||
TransitionToState(EnemyAIState.Dead);
|
||||
ClearTargetPlayer();
|
||||
|
||||
|
||||
if (showDebugInfo)
|
||||
Debug.Log($"<color=red>[EnemyAI] {gameObject.name}이(가) 사망했습니다. (killer: {killerId})</color>");
|
||||
{}
|
||||
}
|
||||
|
||||
private void OnLostTarget()
|
||||
|
||||
@@ -65,8 +65,6 @@ using UnityEngine;
|
||||
{
|
||||
_team.Value = portalTeam;
|
||||
}
|
||||
|
||||
Debug.Log($"<color=cyan>[EnemyPortal] 포털 스폰됨 (팀: {TeamManager.GetTeamName(_team.Value)}, 체력: {_currentHealth.Value}/{maxHealth})</color>");
|
||||
}
|
||||
|
||||
GlobalTimer.Instance.OnCycleStart += OnCycleStart;
|
||||
@@ -104,7 +102,6 @@ using UnityEngine;
|
||||
|
||||
if (monsterData == null)
|
||||
{
|
||||
Debug.LogWarning($"[EnemyPortal] Could not find MonsterData on {selectedEntry.prefab.name}");
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -121,11 +118,6 @@ using UnityEngine;
|
||||
remainingCost -= monsterData.cost;
|
||||
spawnedCount++;
|
||||
}
|
||||
|
||||
if (spawnedCount > 0)
|
||||
{
|
||||
Debug.Log($"[EnemyPortal] Spawned {spawnedCount} monsters (Cost used: {currentCost - remainingCost:F2})");
|
||||
}
|
||||
}
|
||||
|
||||
private bool CanSpawnAnyMonster(float remainingCost)
|
||||
@@ -200,8 +192,6 @@ using UnityEngine;
|
||||
|
||||
var netObj = enemy.GetComponent<NetworkObject>();
|
||||
netObj.Spawn(true);
|
||||
|
||||
Debug.Log($"<color=cyan>[EnemyPortal] {enemy.name} 스폰됨 - OwnerClientId: {netObj.OwnerClientId}, IsServer: {IsServer}</color>");
|
||||
}
|
||||
|
||||
private void IncreaseCost()
|
||||
@@ -238,7 +228,6 @@ using UnityEngine;
|
||||
{
|
||||
if (!TeamManager.CanAttack(attackerTeamMember, this))
|
||||
{
|
||||
Debug.Log($"<color=yellow>[EnemyPortal] {TeamManager.GetTeamName(attackerTeamMember.GetTeam())} 팀은 {TeamManager.GetTeamName(_team.Value)} 팀 포털을 공격할 수 없습니다.</color>");
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -248,8 +237,6 @@ using UnityEngine;
|
||||
int actualDamage = Mathf.Min(damage, _currentHealth.Value);
|
||||
_currentHealth.Value -= actualDamage;
|
||||
|
||||
Debug.Log($"<color=red>[EnemyPortal] 포털이 {actualDamage} 데미지를 받았습니다. 남은 체력: {_currentHealth.Value}/{maxHealth}</color>");
|
||||
|
||||
// 데미지 이펙트
|
||||
ShowDamageEffectClientRpc();
|
||||
|
||||
@@ -264,8 +251,6 @@ using UnityEngine;
|
||||
{
|
||||
if (!IsServer) return;
|
||||
|
||||
Debug.Log($"<color=red>[EnemyPortal] 포털이 파괴되었습니다! (공격자: {attackerId})</color>");
|
||||
|
||||
// 파괴 이펙트
|
||||
ShowDestroyEffectClientRpc();
|
||||
|
||||
|
||||
@@ -75,9 +75,7 @@ namespace Northbound
|
||||
|
||||
int actualDamage = Mathf.Min(damage, _currentHealth.Value);
|
||||
_currentHealth.Value -= actualDamage;
|
||||
|
||||
Debug.Log($"<color=red>[EnemyUnit] 적 유닛이 {actualDamage} 데미지를 받았습니다. 남은 체력: {_currentHealth.Value}/{maxHealth}</color>");
|
||||
|
||||
|
||||
// 데미지 이펙트
|
||||
ShowDamageEffectClientRpc();
|
||||
|
||||
|
||||
@@ -39,7 +39,6 @@ namespace Northbound
|
||||
// NetworkManager 준비 대기
|
||||
if (NetworkManager.Singleton == null || !NetworkManager.Singleton.IsClient)
|
||||
{
|
||||
Debug.LogWarning("[FogOfWar] NetworkManager가 준비되지 않았습니다. 대기 중...");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -55,7 +54,6 @@ namespace Northbound
|
||||
var fogSystem = FogOfWarSystem.Instance;
|
||||
if (fogSystem == null)
|
||||
{
|
||||
Debug.LogError("[FogOfWar] FogOfWarSystem을 찾을 수 없습니다! 씬에 FogOfWarSystem GameObject가 있는지 확인하세요.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -84,10 +82,6 @@ namespace Northbound
|
||||
instanceMaterial.mainTexture = _fogTexture;
|
||||
_meshRenderer.material = instanceMaterial;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogWarning("[FogOfWar] Fog Material이 설정되지 않았습니다!");
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
if (fogSystem.disableInEditor)
|
||||
@@ -98,12 +92,11 @@ namespace Northbound
|
||||
|
||||
// 렌더링 레이어 설정
|
||||
gameObject.layer = LayerMask.NameToLayer("UI"); // 또는 별도 레이어 생성
|
||||
|
||||
|
||||
// 메쉬 생성
|
||||
CreatePlaneMesh(fogSystem);
|
||||
|
||||
_isInitialized = true;
|
||||
Debug.Log($"<color=cyan>[FogOfWar] 렌더러 초기화 완료 (Client {_localClientId})</color>");
|
||||
}
|
||||
|
||||
private void Update()
|
||||
@@ -255,8 +248,6 @@ namespace Northbound
|
||||
|
||||
meshFilter.mesh = mesh;
|
||||
transform.position = fogSystem.worldOrigin;
|
||||
|
||||
Debug.Log($"<color=cyan>[FogOfWar] Plane Mesh 생성 완료: {width}x{height} at {fogSystem.worldOrigin}</color>");
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
|
||||
@@ -256,19 +256,17 @@ namespace Northbound
|
||||
{
|
||||
// 클라이언트는 로컬 데이터 초기화
|
||||
_localFogData = new FogOfWarData(gridWidth, gridHeight);
|
||||
Debug.Log($"<color=cyan>[FogOfWar] 클라이언트 {NetworkManager.LocalClientId} 초기화</color>");
|
||||
}
|
||||
}
|
||||
|
||||
private void OnClientConnected(ulong clientId)
|
||||
{
|
||||
if (!IsServer) return;
|
||||
|
||||
|
||||
// Ensure fog data exists for this client
|
||||
if (!_serverFogData.ContainsKey(clientId))
|
||||
{
|
||||
_serverFogData[clientId] = new FogOfWarData(gridWidth, gridHeight);
|
||||
Debug.Log($"<color=cyan>[FogOfWar] 클라이언트 {clientId} 안개 데이터 초기화</color>");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace Northbound
|
||||
|
||||
if (renderers == null || renderers.Length == 0)
|
||||
{
|
||||
Debug.LogWarning($"[FogOfWarVisibility] {gameObject.name}: No renderers found! Component will not work.");
|
||||
// Debug.LogWarning($"[FogOfWarVisibility] {gameObject.name}: No renderers found! Component will not work.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -104,9 +104,6 @@ namespace Northbound
|
||||
_hasReachedHalfway = true;
|
||||
OnHalfwayPoint?.Invoke(cycleLength / 2f);
|
||||
NotifyHalfwayClientRpc();
|
||||
|
||||
if (showDebugLogs)
|
||||
Debug.Log($"<color=yellow>[GlobalTimer] 사이클 중간 지점 도달</color>");
|
||||
}
|
||||
|
||||
// 사이클 완료
|
||||
@@ -136,14 +133,11 @@ namespace Northbound
|
||||
// 다음 사이클 시작
|
||||
_currentTime.Value = cycleLength;
|
||||
_cycleCount.Value++;
|
||||
_hasReachedHalfway = false;
|
||||
_hasReachedHalfway = false;
|
||||
|
||||
OnCycleStart?.Invoke(_cycleCount.Value);
|
||||
NotifyCycleStartClientRpc(_cycleCount.Value);
|
||||
|
||||
if (showDebugLogs)
|
||||
Debug.Log($"<color=cyan>[GlobalTimer] 사이클 {_cycleCount.Value} 시작</color>");
|
||||
}
|
||||
OnCycleStart?.Invoke(_cycleCount.Value);
|
||||
NotifyCycleStartClientRpc(_cycleCount.Value);
|
||||
}
|
||||
}
|
||||
|
||||
private void OnCurrentTimeChanged(float previousValue, float newValue)
|
||||
@@ -171,9 +165,6 @@ namespace Northbound
|
||||
|
||||
OnCycleStart?.Invoke(_cycleCount.Value);
|
||||
NotifyCycleStartClientRpc(_cycleCount.Value);
|
||||
|
||||
if (showDebugLogs)
|
||||
Debug.Log($"<color=green>[GlobalTimer] 타이머 시작: {cycleLength}초</color>");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -17,12 +17,9 @@ namespace Northbound
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
Debug.Log($"[InteractableModalManager] Awake called on {gameObject.name}");
|
||||
|
||||
if (playerInteraction == null)
|
||||
{
|
||||
playerInteraction = GetComponent<PlayerInteraction>();
|
||||
Debug.Log($"[InteractableModalManager] PlayerInteraction: {(playerInteraction != null ? "Found" : "Not Found")}");
|
||||
}
|
||||
|
||||
FindModalComponent();
|
||||
@@ -30,15 +27,8 @@ namespace Northbound
|
||||
|
||||
private void Start()
|
||||
{
|
||||
Debug.Log($"[InteractableModalManager] Start called on {gameObject.name}");
|
||||
|
||||
FindModalComponent();
|
||||
|
||||
if (interactableModal == null)
|
||||
{
|
||||
Debug.LogError("[InteractableModalManager] InteractableModal is still null in Start!");
|
||||
}
|
||||
|
||||
// Start()에서 HideModal()을 호출하지 않음 - 첫 번째 Update에서 Modal이 표시되지 않는 문제 방지
|
||||
// modalPanel과 unavailablePanel은 InteractableModal.Start()에서 이미 false로 설정됨
|
||||
}
|
||||
@@ -47,21 +37,14 @@ namespace Northbound
|
||||
{
|
||||
if (interactableModal != null)
|
||||
{
|
||||
Debug.Log($"[InteractableModalManager] InteractableModal already assigned: {interactableModal.gameObject.name}");
|
||||
return;
|
||||
}
|
||||
|
||||
InteractableModal[] modals = GetComponentsInChildren<InteractableModal>(true);
|
||||
Debug.Log($"[InteractableModalManager] Found {modals.Length} InteractableModal components in player children");
|
||||
|
||||
if (modals.Length > 0)
|
||||
{
|
||||
interactableModal = modals[0];
|
||||
Debug.Log($"[InteractableModalManager] Using InteractableModal on: {interactableModal.gameObject.name}");
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogWarning("[InteractableModalManager] InteractableModal not found in player children!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,7 +52,6 @@ namespace Northbound
|
||||
{
|
||||
if (playerInteraction == null)
|
||||
{
|
||||
Debug.LogWarning("[InteractableModalManager] Update: playerInteraction is null");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -100,17 +82,14 @@ namespace Northbound
|
||||
|
||||
if (_currentInteractable != null)
|
||||
{
|
||||
Debug.Log($"[InteractableModalManager] Show modal for interactable");
|
||||
ShowModal(_currentInteractable);
|
||||
}
|
||||
else if (unavailableInteractable != null)
|
||||
{
|
||||
Debug.Log($"[InteractableModalManager] Show unavailable message");
|
||||
ShowUnavailableMessageModal(unavailableInteractable);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log($"[InteractableModalManager] Hide modal");
|
||||
HideModal();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -162,7 +162,6 @@ namespace Northbound
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogWarning("[MapGenerator] Core not found in scene!");
|
||||
_corePosition = Vector2.zero;
|
||||
}
|
||||
|
||||
@@ -178,7 +177,6 @@ namespace Northbound
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogWarning("[MapGenerator] No Resource found in scene!");
|
||||
_initialResourcePosition = Vector2.zero;
|
||||
}
|
||||
|
||||
@@ -189,7 +187,6 @@ namespace Northbound
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogWarning("[MapGenerator] Worker Hall not found in scene!");
|
||||
_barracksPosition = Vector2.zero;
|
||||
}
|
||||
}
|
||||
@@ -219,7 +216,6 @@ namespace Northbound
|
||||
{
|
||||
if (resourcePrefab == null)
|
||||
{
|
||||
Debug.LogError("[MapGenerator] Resource prefab not assigned!");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -231,20 +227,13 @@ namespace Northbound
|
||||
{
|
||||
_generatedResources = resources;
|
||||
success = true;
|
||||
Debug.Log($"<color=green>[MapGenerator] Normal resource generation succeeded on attempt {attempt + 1}</color>");
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogWarning($"[MapGenerator] Resource generation attempt {attempt + 1} failed validation");
|
||||
}
|
||||
}
|
||||
|
||||
if (!success)
|
||||
{
|
||||
Debug.LogWarning("<color=yellow>[MapGenerator] All resource generation attempts failed, using fallback layout</color>");
|
||||
GenerateResourceFallbackLayout();
|
||||
Debug.Log($"<color=yellow>[MapGenerator] Fallback layout X coordinates: {string.Join(", ", System.Array.ConvertAll(_generatedResources, r => r.position.x.ToString("F1")))}</color>");
|
||||
}
|
||||
|
||||
SpawnResources();
|
||||
@@ -309,7 +298,6 @@ namespace Northbound
|
||||
if (IsValidResourcePosition(candidatePosition, existingResources, currentIndex))
|
||||
{
|
||||
position = candidatePosition;
|
||||
Debug.Log($"[MapGenerator] Generated valid resource position: X={position.x:F2} (range: {-playableAreaWidth/2f:F2} to {playableAreaWidth/2f:F2})");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -414,7 +402,6 @@ namespace Northbound
|
||||
Resource resource = resourceObj.GetComponent<Resource>();
|
||||
if (resource == null)
|
||||
{
|
||||
Debug.LogError($"[MapGenerator] Resource prefab at index {i} doesn't have Resource component!");
|
||||
Destroy(resourceObj);
|
||||
continue;
|
||||
}
|
||||
@@ -428,7 +415,6 @@ namespace Northbound
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError($"[MapGenerator] Resource prefab at index {i} doesn't have NetworkObject component!");
|
||||
Destroy(resourceObj);
|
||||
}
|
||||
|
||||
@@ -456,7 +442,6 @@ namespace Northbound
|
||||
{
|
||||
if (obstacle.prefab == null)
|
||||
{
|
||||
Debug.LogWarning($"[MapGenerator] Obstacle prefab is null!");
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -657,7 +642,6 @@ namespace Northbound
|
||||
{
|
||||
if (creepCampPrefab == null)
|
||||
{
|
||||
Debug.LogWarning("[MapGenerator] Creep camp prefab not assigned, skipping creep camp generation.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -665,7 +649,6 @@ namespace Northbound
|
||||
|
||||
if (_creepPrefabs.Count == 0)
|
||||
{
|
||||
Debug.LogWarning("[MapGenerator] No creep prefabs found in Assets/Prefabs/Creep/, skipping creep camp generation.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -721,13 +704,8 @@ namespace Northbound
|
||||
}
|
||||
}
|
||||
#else
|
||||
Debug.LogWarning("[MapGenerator] Creep prefabs not loaded in build. Please assign creep prefabs manually in Inspector.");
|
||||
// Creep prefabs not available in build - please assign manually
|
||||
#endif
|
||||
|
||||
if (_creepPrefabs.Count == 0)
|
||||
{
|
||||
Debug.LogWarning("[MapGenerator] No creep prefabs loaded!");
|
||||
}
|
||||
}
|
||||
|
||||
private Vector3 FindValidCampPosition()
|
||||
@@ -791,8 +769,6 @@ namespace Northbound
|
||||
float bestDistance = float.MaxValue;
|
||||
int maxAttempts = 50;
|
||||
|
||||
Debug.Log($"[MapGenerator] FindValidCampPositionForResource: Resource at {resourcePosition}, bounds: X:[{-playableAreaWidth/2f}, {playableAreaWidth/2f}], Z:[{startZ}, {endZ}]");
|
||||
|
||||
for (int attempt = 0; attempt < maxAttempts; attempt++)
|
||||
{
|
||||
float angle = Random.Range(0f, 360f);
|
||||
@@ -813,11 +789,6 @@ namespace Northbound
|
||||
}
|
||||
}
|
||||
|
||||
if (bestPosition == Vector3.zero)
|
||||
{
|
||||
Debug.LogWarning($"[MapGenerator] Failed to find camp position for resource at {resourcePosition} after {maxAttempts} attempts");
|
||||
}
|
||||
|
||||
return bestPosition;
|
||||
}
|
||||
|
||||
@@ -855,7 +826,6 @@ namespace Northbound
|
||||
|
||||
creepCamp.InitializeCamp(position.z, strength, campCostBudget, spawnRadius, maxSpawnAttempts);
|
||||
creepCamp.SetCreepPrefabs(_creepPrefabs);
|
||||
Debug.Log($"[MapGenerator] Camp initialized with {_creepPrefabs.Count} creep prefabs");
|
||||
|
||||
NetworkObject networkObj = campObj.GetComponent<NetworkObject>();
|
||||
if (networkObj == null)
|
||||
|
||||
@@ -31,7 +31,6 @@ namespace Northbound
|
||||
{
|
||||
if (monsterData == null)
|
||||
{
|
||||
Debug.LogWarning("[MonsterDataComponent] monsterData is null", this);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -55,8 +54,6 @@ namespace Northbound
|
||||
{
|
||||
navAgent.speed = monsterData.moveSpeed;
|
||||
}
|
||||
|
||||
Debug.Log($"[MonsterDataComponent] Applied data for {monsterData.id} ({monsterData.memo})", this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,10 +58,5 @@ namespace Northbound
|
||||
|
||||
Debug.Log("================================");
|
||||
}
|
||||
|
||||
private void Start()
|
||||
{
|
||||
Invoke(nameof(LogNetworkConfig), 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,11 +33,9 @@ namespace Northbound
|
||||
NetworkManager.Singleton.ConnectionApprovalCallback = ApprovalCheck;
|
||||
NetworkManager.Singleton.OnServerStarted += OnServerStarted;
|
||||
NetworkManager.Singleton.OnClientConnectedCallback += OnClientConnected;
|
||||
Debug.Log("<color=cyan>[Connection] ConnectionApprovalCallback 등록됨</color>");
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("[Connection] NetworkManager.Singleton이 null입니다!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,13 +54,10 @@ namespace Northbound
|
||||
spawnPoints.Add(point.transform);
|
||||
}
|
||||
}
|
||||
|
||||
Debug.Log($"<color=cyan>[Connection] {spawnPoints.Count}개의 스폰 포인트를 찾았습니다.</color>");
|
||||
}
|
||||
|
||||
private void OnServerStarted()
|
||||
{
|
||||
Debug.Log("<color=green>[Connection] 서버 시작됨</color>");
|
||||
|
||||
if (ServerResourceManager.Instance == null)
|
||||
{
|
||||
@@ -76,9 +71,8 @@ namespace Northbound
|
||||
}
|
||||
|
||||
networkObject.Spawn();
|
||||
Debug.Log("[Connection] ServerResourceManager spawned.");
|
||||
}
|
||||
|
||||
|
||||
if (NetworkManager.Singleton.IsHost)
|
||||
{
|
||||
SpawnPlayer(NetworkManager.Singleton.LocalClientId);
|
||||
@@ -90,11 +84,9 @@ namespace Northbound
|
||||
if (!NetworkManager.Singleton.IsServer) return;
|
||||
if (clientId == NetworkManager.Singleton.LocalClientId) return;
|
||||
|
||||
Debug.Log($"<color=cyan>[Connection] 클라이언트 {clientId} 연결됨</color>");
|
||||
|
||||
if (!NetworkManager.Singleton.ConnectedClients.TryGetValue(clientId, out var client) || client.PlayerObject != null)
|
||||
{
|
||||
Debug.Log($"<color=yellow>[Connection] 클라이언트 {clientId}의 플레이어가 이미 존재합니다.</color>");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -109,7 +101,6 @@ namespace Northbound
|
||||
GameObject playerPrefab = NetworkManager.Singleton.NetworkConfig.PlayerPrefab;
|
||||
if (playerPrefab == null)
|
||||
{
|
||||
Debug.LogError("[Connection] PlayerPrefab이 null입니다!");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -117,13 +108,10 @@ namespace Northbound
|
||||
NetworkObject networkObject = playerObject.GetComponent<NetworkObject>();
|
||||
if (networkObject == null)
|
||||
{
|
||||
Debug.LogError("[Connection] PlayerPrefab에 NetworkObject가 없습니다!");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
networkObject.SpawnAsPlayerObject(clientId);
|
||||
|
||||
Debug.Log($"<color=green>[Connection] 플레이어 {clientId} 스폰됨: {spawnPosition}</color>");
|
||||
}
|
||||
|
||||
private void ApprovalCheck(
|
||||
@@ -131,27 +119,23 @@ namespace Northbound
|
||||
NetworkManager.ConnectionApprovalResponse response)
|
||||
{
|
||||
spawnPoints.RemoveAll(p => p == null);
|
||||
|
||||
|
||||
if (spawnPoints.Count == 0)
|
||||
{
|
||||
Debug.LogError($"<color=red>[Connection] 스폰 포인트가 없습니다! 씬에 PlayerSpawnPoint가 있는지 확인하세요.</color>");
|
||||
}
|
||||
|
||||
response.Approved = true;
|
||||
response.CreatePlayerObject = false;
|
||||
response.Position = Vector3.zero;
|
||||
response.Rotation = Quaternion.identity;
|
||||
|
||||
Debug.Log($"<color=green>[Connection] 클라이언트 {request.ClientNetworkId} 승인됨. 수동 스폰으로 대기.</color>");
|
||||
}
|
||||
|
||||
private Vector3 GetSpawnPosition(ulong clientId)
|
||||
{
|
||||
spawnPoints.RemoveAll(p => p == null);
|
||||
|
||||
|
||||
if (spawnPoints.Count == 0)
|
||||
{
|
||||
Debug.LogWarning("[Connection] 스폰 포인트가 없습니다. 기본 위치 반환.");
|
||||
return Vector3.zero;
|
||||
}
|
||||
|
||||
@@ -172,12 +156,10 @@ namespace Northbound
|
||||
|
||||
if (spawnIndex >= spawnPoints.Count)
|
||||
{
|
||||
Debug.LogWarning($"<color=yellow>[Connection] 스폰 인덱스 {spawnIndex}가 범위를 벗어났습니다. 기본값으로 조정.</color>");
|
||||
spawnIndex = spawnIndex % spawnPoints.Count;
|
||||
}
|
||||
}
|
||||
|
||||
Debug.Log($"<color=yellow>[Connection] 클라이언트 {clientId}에게 스폰 인덱스 {spawnIndex} 할당</color>");
|
||||
return spawnPoints[spawnIndex].position;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,11 +39,10 @@ namespace Northbound
|
||||
}
|
||||
|
||||
ConfigureTransport("0.0.0.0", port);
|
||||
|
||||
|
||||
if (!NetworkManager.Singleton.IsServer && !NetworkManager.Singleton.IsClient)
|
||||
{
|
||||
NetworkManager.Singleton.StartHost();
|
||||
Debug.Log($"[NetworkConnectionHelper] Started Host on port {port}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -60,8 +60,6 @@ public class NetworkPlayerController : NetworkBehaviour, ITeamMember, IDamageabl
|
||||
{
|
||||
_currentHealth.Value = maxHealth;
|
||||
}
|
||||
|
||||
Debug.Log($"<color=cyan>[Player] {gameObject.name} 스폰됨 (팀: {TeamManager.GetTeamName(_team.Value)}, 체력: {_currentHealth.Value}/{maxHealth})</color>");
|
||||
}
|
||||
|
||||
// 체력 변경 이벤트 구독
|
||||
@@ -69,14 +67,13 @@ public class NetworkPlayerController : NetworkBehaviour, ITeamMember, IDamageabl
|
||||
|
||||
if (!IsOwner) return;
|
||||
|
||||
var vcam = GameObject.FindFirstObjectByType<CinemachineCamera>();
|
||||
var vcam = GameObject.FindFirstObjectByType<CinemachineCamera>();
|
||||
|
||||
if (vcam != null)
|
||||
{
|
||||
vcam.Follow = transform;
|
||||
vcam.LookAt = transform;
|
||||
Debug.Log("<color=green>[Camera] 로컬 플레이어에게 카메라가 연결되었습니다.</color>");
|
||||
}
|
||||
if (vcam != null)
|
||||
{
|
||||
vcam.Follow = transform;
|
||||
vcam.LookAt = transform;
|
||||
}
|
||||
|
||||
_inputActions = new PlayerInputActions();
|
||||
_inputActions.Enable();
|
||||
@@ -148,7 +145,6 @@ public class NetworkPlayerController : NetworkBehaviour, ITeamMember, IDamageabl
|
||||
|
||||
TeamType previousTeam = _team.Value;
|
||||
_team.Value = team;
|
||||
Debug.Log($"<color=cyan>[Player] 팀 변경: {TeamManager.GetTeamName(previousTeam)} → {TeamManager.GetTeamName(team)}</color>");
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -170,7 +166,6 @@ public class NetworkPlayerController : NetworkBehaviour, ITeamMember, IDamageabl
|
||||
{
|
||||
if (!TeamManager.CanAttack(attackerTeamMember, this))
|
||||
{
|
||||
Debug.Log($"<color=yellow>[Player] {TeamManager.GetTeamName(attackerTeamMember.GetTeam())} 팀은 {TeamManager.GetTeamName(_team.Value)} 팀을 공격할 수 없습니다.</color>");
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -180,8 +175,6 @@ public class NetworkPlayerController : NetworkBehaviour, ITeamMember, IDamageabl
|
||||
int actualDamage = Mathf.Min(damage, _currentHealth.Value);
|
||||
_currentHealth.Value -= actualDamage;
|
||||
|
||||
Debug.Log($"<color=red>[Player] {gameObject.name} ({TeamManager.GetTeamName(_team.Value)})이(가) {actualDamage} 데미지를 받았습니다. 남은 체력: {_currentHealth.Value}/{maxHealth}</color>");
|
||||
|
||||
// 데미지 이펙트
|
||||
ShowDamageEffectClientRpc();
|
||||
|
||||
@@ -192,13 +185,11 @@ public class NetworkPlayerController : NetworkBehaviour, ITeamMember, IDamageabl
|
||||
}
|
||||
}
|
||||
|
||||
private void Die(ulong killerId)
|
||||
{
|
||||
if (!IsServer) return;
|
||||
private void Die(ulong killerId)
|
||||
{
|
||||
if (!IsServer) return;
|
||||
|
||||
Debug.Log($"<color=red>[Player] {gameObject.name} ({TeamManager.GetTeamName(_team.Value)})이(가) 사망했습니다! (킬러: {killerId})</color>");
|
||||
|
||||
// 사망 이펙트
|
||||
// 사망 이펙트
|
||||
ShowDeathEffectClientRpc();
|
||||
|
||||
// 애니메이션 (있는 경우)
|
||||
@@ -236,7 +227,7 @@ public class NetworkPlayerController : NetworkBehaviour, ITeamMember, IDamageabl
|
||||
transform.rotation = spawnPoint.transform.rotation;
|
||||
}
|
||||
|
||||
Debug.Log($"<color=green>[Player] {gameObject.name} 리스폰!</color>");
|
||||
_animator.SetTrigger("Revive");
|
||||
}
|
||||
|
||||
[ClientRpc]
|
||||
@@ -295,14 +286,11 @@ public class NetworkPlayerController : NetworkBehaviour, ITeamMember, IDamageabl
|
||||
|
||||
int healAmount = Mathf.Min(amount, maxHealth - _currentHealth.Value);
|
||||
_currentHealth.Value += healAmount;
|
||||
|
||||
Debug.Log($"<color=green>[Player] {gameObject.name}이(가) {healAmount} 회복되었습니다. 현재 체력: {_currentHealth.Value}/{maxHealth}</color>");
|
||||
}
|
||||
|
||||
private void OnHealthChanged(int previousValue, int newValue)
|
||||
{
|
||||
// 체력바 UI 업데이트 또는 체력 변경 시각 효과
|
||||
Debug.Log($"<color=yellow>[Player] 체력 변경: {previousValue} → {newValue}</color>");
|
||||
|
||||
// 클라이언트에서도 체력 변경 인지 가능
|
||||
if (IsOwner)
|
||||
|
||||
@@ -270,10 +270,6 @@ namespace Northbound
|
||||
|
||||
ShowGatheringEffectClientRpc();
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogWarning($"[Resource] Worker not in Following state! State: {(int)assignedWorker.CurrentState}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -370,7 +366,6 @@ namespace Northbound
|
||||
{
|
||||
if (NetworkManager.Singleton == null || NetworkManager.Singleton.SpawnManager == null)
|
||||
{
|
||||
Debug.LogWarning($"[Resource] FindWorkerForPlayer - NetworkManager or SpawnManager is null");
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,6 @@ namespace Northbound
|
||||
if (enableOnStart)
|
||||
{
|
||||
_networkManager = NetworkManager.Singleton;
|
||||
Debug.Log("[SimpleMonitor] Simple Network Monitor started");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,21 +46,39 @@ namespace Northbound
|
||||
{
|
||||
if (_networkManager == null)
|
||||
{
|
||||
Debug.LogWarning("[SimpleMonitor] NetworkManager not found");
|
||||
return;
|
||||
}
|
||||
|
||||
bool isServer = _networkManager.IsServer;
|
||||
bool isClient = _networkManager.IsClient;
|
||||
bool isHost = _networkManager.IsHost;
|
||||
|
||||
|
||||
if (isServer && !isClient && _eventsLogged < 3)
|
||||
{
|
||||
_serverStartCount++;
|
||||
_lastServerStartTime = Time.time;
|
||||
Debug.Log("[SimpleMonitor] Server started (Count: " + _serverStartCount + ")");
|
||||
_eventsLogged++;
|
||||
}
|
||||
|
||||
if (!isServer && !isClient && _lastServerStartTime > 0f && _eventsLogged < 50)
|
||||
{
|
||||
float uptime = Time.time - _lastServerStartTime;
|
||||
_serverStopCount++;
|
||||
_eventsLogged++;
|
||||
|
||||
if (_serverStopCount >=3)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
if (isServer && _serverStartCount > 0)
|
||||
{
|
||||
if (_eventsLogged % 10 ==0)
|
||||
{
|
||||
float uptime = Time.time - _lastServerStartTime;
|
||||
_eventsLogged++;
|
||||
}
|
||||
}
|
||||
|
||||
if (!isServer && !isClient && _lastServerStartTime > 0f && _eventsLogged < 50)
|
||||
{
|
||||
@@ -96,20 +113,11 @@ namespace Northbound
|
||||
_serverStartCount = 0;
|
||||
_lastServerStartTime = 0f;
|
||||
_eventsLogged = 0;
|
||||
Debug.Log("[SimpleMonitor] Counters reset");
|
||||
}
|
||||
|
||||
|
||||
[ContextMenu("Show Stats")]
|
||||
public void ShowStats()
|
||||
{
|
||||
Debug.Log("=== SIMPLE MONITOR STATS ===");
|
||||
Debug.Log("Server Stops: " + _serverStopCount);
|
||||
Debug.Log("Server Starts: " + _serverStartCount);
|
||||
Debug.Log("NetworkManager:");
|
||||
Debug.Log(" IsServer: " + (_networkManager != null ? _networkManager.IsServer.ToString() : "null"));
|
||||
Debug.Log(" IsClient: " + (_networkManager != null ? _networkManager.IsClient.ToString() : "null"));
|
||||
Debug.Log(" IsHost: " + (_networkManager != null ? _networkManager.IsHost.ToString() : "null"));
|
||||
Debug.Log("============================");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user