Compare commits
15 Commits
4245513c7c
...
feature-en
Author | SHA1 | Date | |
---|---|---|---|
5667884f75 | |||
c5e0375731 | |||
ec2ede72ed | |||
db7559cd16 | |||
ad725ee518 | |||
7b48612c4b | |||
a67aee24aa | |||
81c1c0de0e | |||
3043c54bc4 | |||
5e894f79e4 | |||
cea2dcad9e | |||
5b2997c057 | |||
65e2eea93f | |||
8f2b0daa60 | |||
51fabc12b6 |
5
.idea/.idea.idle-survivors/.idea/codeStyles/codeStyleConfig.xml
generated
Normal file
5
.idea/.idea.idle-survivors/.idea/codeStyles/codeStyleConfig.xml
generated
Normal file
@@ -0,0 +1,5 @@
|
||||
<component name="ProjectCodeStyleConfiguration">
|
||||
<state>
|
||||
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
|
||||
</state>
|
||||
</component>
|
@@ -2,72 +2,79 @@ workspace:
|
||||
base: /studio
|
||||
path: idle-survivors
|
||||
|
||||
# We use a singleton "matrix" to set variables, because formal variables are a
|
||||
# Woodpecker next feature.
|
||||
matrix:
|
||||
include:
|
||||
- BUILD_NAME: idle-survivors
|
||||
UNITY_ACTIVATION_FILE: ./unity3d.alf
|
||||
IMAGE: unityci/editor
|
||||
IMAGE_VERSION: 1
|
||||
# The GitLab version pulls the Unity version from the project information,
|
||||
# but I don't think Woodpecker will use that as a variable in image names.
|
||||
# We set the version as a variable instead and check that it's right.
|
||||
UNITY_VERSION: 2022.3.4f1
|
||||
UNITY_DIR: /studio/idle-survivors
|
||||
variables:
|
||||
- &base_image 'unityci/editor:2022.3.4f1-base-1'
|
||||
- &win_mono_image 'unityci/editor:2022.3.4f1-windows-mono-1'
|
||||
- all_env: &all_env
|
||||
- BUILD_NAME=idle-survivors
|
||||
- UNITY_VERSION=2022.3.4f1
|
||||
- UNITY_DIR=/studio/idle-survivors
|
||||
- build_env: &build_env
|
||||
- VERSION_NUMBER_VAR=${CI_COMMIT_BRANCH}-${CI_PIPELINE_NUMBER}
|
||||
- VERSION_BUILD_VAR=${CI_COMMIT_HASH}
|
||||
- test_env: &test_env
|
||||
- TESTING_TYPE=NUNIT
|
||||
- secrets: &secrets_list
|
||||
- unity_license
|
||||
- before_script: &before_script
|
||||
- chmod +x $UNITY_DIR/ci/before_script.sh
|
||||
- $UNITY_DIR/ci/before_script.sh
|
||||
- test_script: &test_script
|
||||
- chmod +x $UNITY_DIR/ci/test.sh
|
||||
- $UNITY_DIR/ci/test.sh
|
||||
|
||||
pipeline:
|
||||
steps:
|
||||
check-unity-version:
|
||||
image: ${IMAGE}:${UNITY_VERSION}-base-${IMAGE_VERSION}
|
||||
image: *base_image
|
||||
commands:
|
||||
- test "$UNITY_VERSION" = $(grep "m_EditorVersion:" "${UNITY_DIR}/ProjectSettings/ProjectVersion.txt" | cut -d' ' -f2)
|
||||
- test "$UNITY_VERSION" = $(grep "m_EditorVersion:" "$UNITY_DIR/ProjectSettings/ProjectVersion.txt" | cut -d' ' -f2)
|
||||
environment:
|
||||
- <<: *all_env
|
||||
setup-license:
|
||||
image: ${IMAGE}:${UNITY_VERSION}-base-${IMAGE_VERSION}
|
||||
image: *base_image
|
||||
commands:
|
||||
- chmod +x ${UNITY_DIR}/ci/before_script.sh
|
||||
- ${UNITY_DIR}/ci/before_script.sh
|
||||
secrets: [unity_license]
|
||||
- <<: *before_script
|
||||
environment:
|
||||
- <<: *all_env
|
||||
secrets:
|
||||
- <<: *secrets_list
|
||||
test-playmode:
|
||||
image: ${IMAGE}:${UNITY_VERSION}-base-${IMAGE_VERSION}
|
||||
image: *base_image
|
||||
commands:
|
||||
- ${UNITY_DIR}/ci/before_script.sh
|
||||
- chmod +x ${UNITY_DIR}/ci/test.sh
|
||||
- ${UNITY_DIR}/ci/test.sh
|
||||
- <<: [*before_script, *test_script]
|
||||
environment:
|
||||
- <<: [*all_env, *build_env, *test_env]
|
||||
- TEST_PLATFORM=playmode
|
||||
- TESTING_TYPE=NUNIT
|
||||
- VERSION_NUMBER_VAR=${CI_COMMIT_BRANCH}-${CI_BUILD_NUMBER}
|
||||
- VERSION_BUILD_VAR=${CI_COMMIT_HASH}
|
||||
secrets: [unity_license]
|
||||
secrets:
|
||||
- <<: *secrets_list
|
||||
test-editmode:
|
||||
image: ${IMAGE}:${UNITY_VERSION}-base-${IMAGE_VERSION}
|
||||
image: *base_image
|
||||
commands:
|
||||
- ${UNITY_DIR}/ci/before_script.sh
|
||||
- chmod +x ${UNITY_DIR}/ci/test.sh
|
||||
- ${UNITY_DIR}/ci/test.sh
|
||||
- <<: [*before_script, *test_script]
|
||||
environment:
|
||||
- <<: [*all_env, *build_env, *test_env]
|
||||
- TEST_PLATFORM=editmode
|
||||
- TESTING_TYPE=NUNIT
|
||||
- VERSION_NUMBER_VAR=${CI_COMMIT_BRANCH}-${CI_BUILD_NUMBER}
|
||||
- VERSION_BUILD_VAR=${CI_COMMIT_HASH}
|
||||
secrets: [unity_license]
|
||||
secrets:
|
||||
- <<: *secrets_list
|
||||
build-standalone-windows:
|
||||
image: ${IMAGE}:${UNITY_VERSION}-windows-mono-${IMAGE_VERSION}
|
||||
image: *win_mono_image
|
||||
commands:
|
||||
- ${UNITY_DIR}/ci/before_script.sh
|
||||
- <<: *before_script
|
||||
- chmod +x ./ci/build.sh
|
||||
- ./ci/build.sh
|
||||
environment:
|
||||
- <<: [*all_env, *build_env]
|
||||
- BUILD_TARGET=StandaloneWindows64
|
||||
- VERSION_NUMBER_VAR=${CI_COMMIT_TAG}
|
||||
- VERSION_BUILD_VAR=${CI_COMMIT_HASH}
|
||||
secrets: [unity_license]
|
||||
secrets:
|
||||
- <<: *secrets_list
|
||||
when:
|
||||
event: tag
|
||||
package:
|
||||
image: ${IMAGE}:${UNITY_VERSION}-windows-mono-${IMAGE_VERSION}
|
||||
image: *win_mono_image
|
||||
commands:
|
||||
- tar -C ${UNITY_DIR}/Builds -cvzf ${CI_COMMIT_TAG}.tar.gz .
|
||||
- tar -C $UNITY_DIR/Builds -cvzf ${CI_COMMIT_TAG}.tar.gz .
|
||||
environment:
|
||||
- <<: *all_env
|
||||
when:
|
||||
event: tag
|
||||
publish:
|
||||
@@ -81,3 +88,6 @@ pipeline:
|
||||
base_url: https://git.sunturtle.xyz
|
||||
when:
|
||||
event: tag
|
||||
|
||||
when:
|
||||
event: [push, tag, deployment]
|
||||
|
8
Assets/EventChannels.meta
generated
Normal file
8
Assets/EventChannels.meta
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 243302c56bf8926489fe86e5626dd4d3
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
14
Assets/EventChannels/EndSpawnWave.asset
generated
Normal file
14
Assets/EventChannels/EndSpawnWave.asset
generated
Normal file
@@ -0,0 +1,14 @@
|
||||
%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: 908e283bf3a54c859a0771fd8aed7bce, type: 3}
|
||||
m_Name: EndSpawnWave
|
||||
m_EditorClassIdentifier:
|
8
Assets/EventChannels/EndSpawnWave.asset.meta
generated
Normal file
8
Assets/EventChannels/EndSpawnWave.asset.meta
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b8a8049e92364834ebac76909a03324b
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
14
Assets/EventChannels/StartSpawnWave.asset
generated
Normal file
14
Assets/EventChannels/StartSpawnWave.asset
generated
Normal file
@@ -0,0 +1,14 @@
|
||||
%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: 908e283bf3a54c859a0771fd8aed7bce, type: 3}
|
||||
m_Name: StartSpawnWave
|
||||
m_EditorClassIdentifier:
|
8
Assets/EventChannels/StartSpawnWave.asset.meta
generated
Normal file
8
Assets/EventChannels/StartSpawnWave.asset.meta
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3f9039af54fd5d240b144e1ab3bbeb72
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
118
Assets/PlayerInputActions.inputactions
Normal file
118
Assets/PlayerInputActions.inputactions
Normal file
@@ -0,0 +1,118 @@
|
||||
{
|
||||
"name": "PlayerInputActions",
|
||||
"maps": [
|
||||
{
|
||||
"name": "PlayMode",
|
||||
"id": "070b907f-017e-4c2f-b0c6-1c42d04fcbdd",
|
||||
"actions": [
|
||||
{
|
||||
"name": "CameraRotate",
|
||||
"type": "Value",
|
||||
"id": "9afddc3f-5399-45ec-b6d4-ac8f14591f59",
|
||||
"expectedControlType": "Axis",
|
||||
"processors": "",
|
||||
"interactions": "",
|
||||
"initialStateCheck": true
|
||||
},
|
||||
{
|
||||
"name": "CameraHoldToRotate",
|
||||
"type": "Button",
|
||||
"id": "9d3c83bf-1503-4dab-a09d-437cf2086c6d",
|
||||
"expectedControlType": "Button",
|
||||
"processors": "",
|
||||
"interactions": "",
|
||||
"initialStateCheck": false
|
||||
},
|
||||
{
|
||||
"name": "CameraZoom",
|
||||
"type": "Value",
|
||||
"id": "fa83c1c9-b87f-4cee-975f-3855c924d2df",
|
||||
"expectedControlType": "Axis",
|
||||
"processors": "",
|
||||
"interactions": "",
|
||||
"initialStateCheck": true
|
||||
}
|
||||
],
|
||||
"bindings": [
|
||||
{
|
||||
"name": "Rotation",
|
||||
"id": "0050b6a4-a3f1-4ff1-b9c8-1d42d4f0c6fb",
|
||||
"path": "1DAxis",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "",
|
||||
"action": "CameraRotate",
|
||||
"isComposite": true,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
{
|
||||
"name": "negative",
|
||||
"id": "f28b531d-41d8-4d40-b5ec-3d1f03096737",
|
||||
"path": "<Mouse>/delta/left",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "",
|
||||
"action": "CameraRotate",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": true
|
||||
},
|
||||
{
|
||||
"name": "positive",
|
||||
"id": "36e58b45-1d68-4530-bde4-1d2e8782dd7c",
|
||||
"path": "<Mouse>/delta/right",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "",
|
||||
"action": "CameraRotate",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": true
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"id": "14146a82-ac5b-49ee-9ab7-e6368a4cae5c",
|
||||
"path": "<Mouse>/rightButton",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "",
|
||||
"action": "CameraHoldToRotate",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
{
|
||||
"name": "Zoom",
|
||||
"id": "74d82a33-5fc3-44c2-a098-ce09b78688cb",
|
||||
"path": "1DAxis",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "",
|
||||
"action": "CameraZoom",
|
||||
"isComposite": true,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
{
|
||||
"name": "negative",
|
||||
"id": "11019ed6-53a3-415d-a6bc-c8761b180cb6",
|
||||
"path": "<Mouse>/scroll/up",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "",
|
||||
"action": "CameraZoom",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": true
|
||||
},
|
||||
{
|
||||
"name": "positive",
|
||||
"id": "2c66ebda-4b5d-4dc2-a1e4-42f0e56e9e30",
|
||||
"path": "<Mouse>/scroll/down",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "",
|
||||
"action": "CameraZoom",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"controlSchemes": []
|
||||
}
|
14
Assets/PlayerInputActions.inputactions.meta
generated
Normal file
14
Assets/PlayerInputActions.inputactions.meta
generated
Normal file
@@ -0,0 +1,14 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 18146251781a96a42b7ab71478f9bfe1
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 11500000, guid: 8404be70184654265930450def6a9037, type: 3}
|
||||
generateWrapperCode: 0
|
||||
wrapperCodePath:
|
||||
wrapperClassName:
|
||||
wrapperCodeNamespace:
|
8
Assets/Prefabs.meta
generated
Normal file
8
Assets/Prefabs.meta
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7a3945a1a19aebe41a5bb5f9188d6fce
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
158
Assets/Prefabs/Hero.prefab
generated
Normal file
158
Assets/Prefabs/Hero.prefab
generated
Normal file
@@ -0,0 +1,158 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &4266554956241441996
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8131132593237417405}
|
||||
- component: {fileID: 7347972816793018538}
|
||||
m_Layer: 0
|
||||
m_Name: Hero
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &8131132593237417405
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4266554956241441996}
|
||||
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_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 4157508313357080045}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &7347972816793018538
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4266554956241441996}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 583304b24f3e6394f9e4d49747e22193, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
name:
|
||||
class_: {fileID: 0}
|
||||
level: 0
|
||||
xp: 0
|
||||
attrs: {fileID: 0}
|
||||
_party: {fileID: 11400000, guid: 2fdb3d0bb73994d4ba32eb41950b8f15, type: 2}
|
||||
--- !u!1 &4632618406133265053
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4157508313357080045}
|
||||
- component: {fileID: 4035501944472890363}
|
||||
- component: {fileID: 6674764498643525653}
|
||||
- component: {fileID: 8501611724909554060}
|
||||
m_Layer: 0
|
||||
m_Name: Cube
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &4157508313357080045
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4632618406133265053}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0.5}
|
||||
m_LocalScale: {x: 0.1, y: 0.1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 8131132593237417405}
|
||||
m_RootOrder: -1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!33 &4035501944472890363
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4632618406133265053}
|
||||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!23 &6674764498643525653
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4632618406133265053}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 2
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!65 &8501611724909554060
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4632618406133265053}
|
||||
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}
|
7
Assets/Prefabs/Hero.prefab.meta
generated
Normal file
7
Assets/Prefabs/Hero.prefab.meta
generated
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d11d2f36660d2b2449892cb25c074616
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/Runtime Sets.meta
generated
Normal file
8
Assets/Runtime Sets.meta
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 57024de5f8ad4f74ba5d83bb062a7612
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
15
Assets/Runtime Sets/ActiveEnemyRuntimeSet.asset
generated
Normal file
15
Assets/Runtime Sets/ActiveEnemyRuntimeSet.asset
generated
Normal file
@@ -0,0 +1,15 @@
|
||||
%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: 5f1e329a7f6343f88553db21ffb55693, type: 3}
|
||||
m_Name: ActiveEnemyRuntimeSet
|
||||
m_EditorClassIdentifier:
|
||||
Items: []
|
8
Assets/Runtime Sets/ActiveEnemyRuntimeSet.asset.meta
generated
Normal file
8
Assets/Runtime Sets/ActiveEnemyRuntimeSet.asset.meta
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7c32c32e039cdda409e8a56d2e320f2d
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
15
Assets/Runtime Sets/PlayerParty.asset
generated
Normal file
15
Assets/Runtime Sets/PlayerParty.asset
generated
Normal file
@@ -0,0 +1,15 @@
|
||||
%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: 0ec1a0df7a5949a2959596c722680f76, type: 3}
|
||||
m_Name: PlayerParty
|
||||
m_EditorClassIdentifier:
|
||||
items: []
|
8
Assets/Runtime Sets/PlayerParty.asset.meta
generated
Normal file
8
Assets/Runtime Sets/PlayerParty.asset.meta
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2fdb3d0bb73994d4ba32eb41950b8f15
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
311
Assets/Scenes/ZephyrDev.unity
generated
Normal file
311
Assets/Scenes/ZephyrDev.unity
generated
Normal file
@@ -0,0 +1,311 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
OcclusionCullingSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: 0.25
|
||||
backfaceThreshold: 100
|
||||
m_SceneGUID: 00000000000000000000000000000000
|
||||
m_OcclusionCullingData: {fileID: 0}
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 9
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: 0.01
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
||||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
||||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 0
|
||||
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
||||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_HaloStrength: 0.5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
m_IndirectSpecularColor: {r: 0.44657874, g: 0.49641275, b: 0.5748172, a: 1}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 12
|
||||
m_GIWorkflowMode: 1
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 0
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 12
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_AtlasSize: 1024
|
||||
m_AO: 0
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 1
|
||||
m_CompAOExponentDirect: 0
|
||||
m_ExtractAmbientOcclusion: 0
|
||||
m_Padding: 2
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_LightmapsBakeMode: 1
|
||||
m_TextureCompression: 1
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherFiltering: 1
|
||||
m_FinalGatherRayCount: 256
|
||||
m_ReflectionCompression: 2
|
||||
m_MixedBakeMode: 2
|
||||
m_BakeBackend: 1
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 512
|
||||
m_PVRBounces: 2
|
||||
m_PVREnvironmentSampleCount: 256
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_PVRFilteringMode: 1
|
||||
m_PVRDenoiserTypeDirect: 1
|
||||
m_PVRDenoiserTypeIndirect: 1
|
||||
m_PVRDenoiserTypeAO: 1
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVREnvironmentMIS: 1
|
||||
m_PVRCulling: 1
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 5
|
||||
m_PVRFilteringGaussRadiusAO: 2
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_ExportTrainingData: 0
|
||||
m_TrainingDataDestination: TrainingData
|
||||
m_LightProbeSampleCountMultiplier: 4
|
||||
m_LightingDataAsset: {fileID: 0}
|
||||
m_LightingSettings: {fileID: 0}
|
||||
--- !u!196 &4
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 3
|
||||
agentTypeID: 0
|
||||
agentRadius: 0.5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: 0.4
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
minRegionArea: 2
|
||||
manualCellSize: 0
|
||||
cellSize: 0.16666667
|
||||
manualTileSize: 0
|
||||
tileSize: 256
|
||||
buildHeightMesh: 0
|
||||
maxJobWorkers: 0
|
||||
preserveTilesOutsideBounds: 0
|
||||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &908666545
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 908666548}
|
||||
- component: {fileID: 908666547}
|
||||
- component: {fileID: 908666546}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &908666546
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 908666545}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &908666547
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 908666545}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
||||
m_projectionMatrixMode: 1
|
||||
m_GateFitMode: 2
|
||||
m_FOVAxisMode: 0
|
||||
m_Iso: 200
|
||||
m_ShutterSpeed: 0.005
|
||||
m_Aperture: 16
|
||||
m_FocusDistance: 10
|
||||
m_FocalLength: 50
|
||||
m_BladeCount: 5
|
||||
m_Curvature: {x: 2, y: 11}
|
||||
m_BarrelClipping: 0.25
|
||||
m_Anamorphism: 0
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 1
|
||||
m_AllowMSAA: 1
|
||||
m_AllowDynamicResolution: 0
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
--- !u!4 &908666548
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 908666545}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 1, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1497259212
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1497259214}
|
||||
- component: {fileID: 1497259213}
|
||||
m_Layer: 0
|
||||
m_Name: Directional Light
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!108 &1497259213
|
||||
Light:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1497259212}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 10
|
||||
m_Type: 1
|
||||
m_Shape: 0
|
||||
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
|
||||
m_Intensity: 1
|
||||
m_Range: 10
|
||||
m_SpotAngle: 30
|
||||
m_InnerSpotAngle: 21.80208
|
||||
m_CookieSize: 10
|
||||
m_Shadows:
|
||||
m_Type: 2
|
||||
m_Resolution: -1
|
||||
m_CustomResolution: -1
|
||||
m_Strength: 1
|
||||
m_Bias: 0.05
|
||||
m_NormalBias: 0.4
|
||||
m_NearPlane: 0.2
|
||||
m_CullingMatrixOverride:
|
||||
e00: 1
|
||||
e01: 0
|
||||
e02: 0
|
||||
e03: 0
|
||||
e10: 0
|
||||
e11: 1
|
||||
e12: 0
|
||||
e13: 0
|
||||
e20: 0
|
||||
e21: 0
|
||||
e22: 1
|
||||
e23: 0
|
||||
e30: 0
|
||||
e31: 0
|
||||
e32: 0
|
||||
e33: 1
|
||||
m_UseCullingMatrixOverride: 0
|
||||
m_Cookie: {fileID: 0}
|
||||
m_DrawHalo: 0
|
||||
m_Flare: {fileID: 0}
|
||||
m_RenderMode: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingLayerMask: 1
|
||||
m_Lightmapping: 4
|
||||
m_LightShadowCasterMode: 0
|
||||
m_AreaSize: {x: 1, y: 1}
|
||||
m_BounceIntensity: 1
|
||||
m_ColorTemperature: 6570
|
||||
m_UseColorTemperature: 0
|
||||
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_UseBoundingSphereOverride: 0
|
||||
m_UseViewFrustumForShadowCasterCull: 1
|
||||
m_ShadowRadius: 0
|
||||
m_ShadowAngle: 0
|
||||
--- !u!4 &1497259214
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1497259212}
|
||||
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
|
||||
m_LocalPosition: {x: 0, y: 3, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
|
7
Assets/Scenes/ZephyrDev.unity.meta
generated
Normal file
7
Assets/Scenes/ZephyrDev.unity.meta
generated
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1d308f2ef17118e4fa742eb845bbad04
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
815
Assets/Scenes/test.unity
generated
Normal file
815
Assets/Scenes/test.unity
generated
Normal file
@@ -0,0 +1,815 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
OcclusionCullingSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: 0.25
|
||||
backfaceThreshold: 100
|
||||
m_SceneGUID: 00000000000000000000000000000000
|
||||
m_OcclusionCullingData: {fileID: 0}
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 9
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: 0.01
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
||||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
||||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 0
|
||||
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
||||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_HaloStrength: 0.5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
m_IndirectSpecularColor: {r: 0.44657874, g: 0.49641275, b: 0.5748172, a: 1}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 12
|
||||
m_GIWorkflowMode: 1
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 0
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 12
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_AtlasSize: 1024
|
||||
m_AO: 0
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 1
|
||||
m_CompAOExponentDirect: 0
|
||||
m_ExtractAmbientOcclusion: 0
|
||||
m_Padding: 2
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_LightmapsBakeMode: 1
|
||||
m_TextureCompression: 1
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherFiltering: 1
|
||||
m_FinalGatherRayCount: 256
|
||||
m_ReflectionCompression: 2
|
||||
m_MixedBakeMode: 2
|
||||
m_BakeBackend: 1
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 512
|
||||
m_PVRBounces: 2
|
||||
m_PVREnvironmentSampleCount: 256
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_PVRFilteringMode: 1
|
||||
m_PVRDenoiserTypeDirect: 1
|
||||
m_PVRDenoiserTypeIndirect: 1
|
||||
m_PVRDenoiserTypeAO: 1
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVREnvironmentMIS: 1
|
||||
m_PVRCulling: 1
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 5
|
||||
m_PVRFilteringGaussRadiusAO: 2
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_ExportTrainingData: 0
|
||||
m_TrainingDataDestination: TrainingData
|
||||
m_LightProbeSampleCountMultiplier: 4
|
||||
m_LightingDataAsset: {fileID: 0}
|
||||
m_LightingSettings: {fileID: 0}
|
||||
--- !u!196 &4
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 3
|
||||
agentTypeID: 0
|
||||
agentRadius: 0.5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: 0.4
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
minRegionArea: 2
|
||||
manualCellSize: 0
|
||||
cellSize: 0.16666667
|
||||
manualTileSize: 0
|
||||
tileSize: 256
|
||||
buildHeightMesh: 0
|
||||
maxJobWorkers: 0
|
||||
preserveTilesOutsideBounds: 0
|
||||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &19609787
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 19609788}
|
||||
m_Layer: 0
|
||||
m_Name: WorldCenter
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &19609788
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 19609787}
|
||||
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_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 4
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &265738016
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 265738020}
|
||||
- component: {fileID: 265738019}
|
||||
- component: {fileID: 265738018}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &265738018
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 265738016}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &265738019
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 265738016}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
||||
m_projectionMatrixMode: 1
|
||||
m_GateFitMode: 2
|
||||
m_FOVAxisMode: 0
|
||||
m_Iso: 200
|
||||
m_ShutterSpeed: 0.005
|
||||
m_Aperture: 16
|
||||
m_FocusDistance: 10
|
||||
m_FocalLength: 50
|
||||
m_BladeCount: 5
|
||||
m_Curvature: {x: 2, y: 11}
|
||||
m_BarrelClipping: 0.25
|
||||
m_Anamorphism: 0
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 1
|
||||
m_AllowMSAA: 1
|
||||
m_AllowDynamicResolution: 0
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
--- !u!4 &265738020
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 265738016}
|
||||
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_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1176001024}
|
||||
m_RootOrder: -1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &341227469
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 341227470}
|
||||
m_Layer: 0
|
||||
m_Name: MinZoomTarget
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &341227470
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 341227469}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1176001024}
|
||||
m_RootOrder: -1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &638956814
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 638956816}
|
||||
- component: {fileID: 638956815}
|
||||
m_Layer: 0
|
||||
m_Name: Directional Light
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!108 &638956815
|
||||
Light:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 638956814}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 10
|
||||
m_Type: 1
|
||||
m_Shape: 0
|
||||
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
|
||||
m_Intensity: 1
|
||||
m_Range: 10
|
||||
m_SpotAngle: 30
|
||||
m_InnerSpotAngle: 21.80208
|
||||
m_CookieSize: 10
|
||||
m_Shadows:
|
||||
m_Type: 2
|
||||
m_Resolution: -1
|
||||
m_CustomResolution: -1
|
||||
m_Strength: 1
|
||||
m_Bias: 0.05
|
||||
m_NormalBias: 0.4
|
||||
m_NearPlane: 0.2
|
||||
m_CullingMatrixOverride:
|
||||
e00: 1
|
||||
e01: 0
|
||||
e02: 0
|
||||
e03: 0
|
||||
e10: 0
|
||||
e11: 1
|
||||
e12: 0
|
||||
e13: 0
|
||||
e20: 0
|
||||
e21: 0
|
||||
e22: 1
|
||||
e23: 0
|
||||
e30: 0
|
||||
e31: 0
|
||||
e32: 0
|
||||
e33: 1
|
||||
m_UseCullingMatrixOverride: 0
|
||||
m_Cookie: {fileID: 0}
|
||||
m_DrawHalo: 0
|
||||
m_Flare: {fileID: 0}
|
||||
m_RenderMode: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingLayerMask: 1
|
||||
m_Lightmapping: 4
|
||||
m_LightShadowCasterMode: 0
|
||||
m_AreaSize: {x: 1, y: 1}
|
||||
m_BounceIntensity: 1
|
||||
m_ColorTemperature: 6570
|
||||
m_UseColorTemperature: 0
|
||||
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_UseBoundingSphereOverride: 0
|
||||
m_UseViewFrustumForShadowCasterCull: 1
|
||||
m_ShadowRadius: 0
|
||||
m_ShadowAngle: 0
|
||||
--- !u!4 &638956816
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 638956814}
|
||||
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
|
||||
m_LocalPosition: {x: 0, y: 3, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
|
||||
--- !u!1 &734120640
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 734120642}
|
||||
- component: {fileID: 734120641}
|
||||
- component: {fileID: 734120643}
|
||||
m_Layer: 0
|
||||
m_Name: PlayerInputManager
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &734120641
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 734120640}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 62899f850307741f2a39c98a8b639597, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Actions: {fileID: -944628639613478452, guid: 18146251781a96a42b7ab71478f9bfe1, type: 3}
|
||||
m_NotificationBehavior: 2
|
||||
m_UIInputModule: {fileID: 0}
|
||||
m_DeviceLostEvent:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_DeviceRegainedEvent:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_ControlsChangedEvent:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_ActionEvents:
|
||||
- m_PersistentCalls:
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 734120643}
|
||||
m_TargetAssemblyTypeName: Input.PlayerCameraInputHandler, IdleSurvivors
|
||||
m_MethodName: OnInputRotate
|
||||
m_Mode: 0
|
||||
m_Arguments:
|
||||
m_ObjectArgument: {fileID: 0}
|
||||
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
|
||||
m_IntArgument: 0
|
||||
m_FloatArgument: 0
|
||||
m_StringArgument:
|
||||
m_BoolArgument: 0
|
||||
m_CallState: 2
|
||||
m_ActionId: 9afddc3f-5399-45ec-b6d4-ac8f14591f59
|
||||
m_ActionName: PlayMode/CameraRotate[/Mouse/delta/left,/Mouse/delta/right]
|
||||
- m_PersistentCalls:
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 734120643}
|
||||
m_TargetAssemblyTypeName: Input.PlayerCameraInputHandler, IdleSurvivors
|
||||
m_MethodName: OnInputHoldToRotate
|
||||
m_Mode: 0
|
||||
m_Arguments:
|
||||
m_ObjectArgument: {fileID: 0}
|
||||
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
|
||||
m_IntArgument: 0
|
||||
m_FloatArgument: 0
|
||||
m_StringArgument:
|
||||
m_BoolArgument: 0
|
||||
m_CallState: 2
|
||||
m_ActionId: 9d3c83bf-1503-4dab-a09d-437cf2086c6d
|
||||
m_ActionName: PlayMode/CameraRotateHold[/Mouse/rightButton]
|
||||
- m_PersistentCalls:
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 734120643}
|
||||
m_TargetAssemblyTypeName: Input.PlayerCameraInputHandler, IdleSurvivors
|
||||
m_MethodName: OnInputZoom
|
||||
m_Mode: 0
|
||||
m_Arguments:
|
||||
m_ObjectArgument: {fileID: 0}
|
||||
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
|
||||
m_IntArgument: 0
|
||||
m_FloatArgument: 0
|
||||
m_StringArgument:
|
||||
m_BoolArgument: 0
|
||||
m_CallState: 2
|
||||
m_ActionId: fa83c1c9-b87f-4cee-975f-3855c924d2df
|
||||
m_ActionName: PlayMode/CameraZoom[/Mouse/scroll/down,/Mouse/scroll/up]
|
||||
m_NeverAutoSwitchControlSchemes: 0
|
||||
m_DefaultControlScheme:
|
||||
m_DefaultActionMap: PlayMode
|
||||
m_SplitScreenIndex: -1
|
||||
m_Camera: {fileID: 0}
|
||||
--- !u!4 &734120642
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 734120640}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 2.2035093, y: 11.917318, z: 11.892587}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &734120643
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 734120640}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 0b94be55d5ec4fedb531d50297528d3b, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
cameraController: {fileID: 1176001025}
|
||||
rotationSensitivity: 100
|
||||
zoomSensitivity: 0.05
|
||||
--- !u!1 &880655848
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 880655850}
|
||||
- component: {fileID: 880655849}
|
||||
- component: {fileID: 880655851}
|
||||
m_Layer: 0
|
||||
m_Name: LevelDirector
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &880655849
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 880655848}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: bb718e52728142e4a8db081fd6a36a70, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
startNewSpawnWaveEvent: {fileID: 11400000, guid: 3f9039af54fd5d240b144e1ab3bbeb72, type: 2}
|
||||
endSpawnWaveEventEvent: {fileID: 11400000, guid: b8a8049e92364834ebac76909a03324b, type: 2}
|
||||
activeEnemies: {fileID: 11400000, guid: 7c32c32e039cdda409e8a56d2e320f2d, type: 2}
|
||||
spawnCenter: {fileID: 19609788}
|
||||
minimumSpawnRadius: 10
|
||||
timeBetweenClearedWaves: 0
|
||||
timeBeforeFirstWave: 0
|
||||
--- !u!4 &880655850
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 880655848}
|
||||
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_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 6
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &880655851
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 880655848}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: a91533ae182d470c88ce779956713e02, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
waveSpawner: {fileID: 880655849}
|
||||
spawnWaves:
|
||||
- {fileID: 11400000, guid: e7512725c2f0b3148bd090141c5eed5d, type: 2}
|
||||
--- !u!1 &1038072789
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1038072793}
|
||||
- component: {fileID: 1038072792}
|
||||
- component: {fileID: 1038072791}
|
||||
- component: {fileID: 1038072790}
|
||||
m_Layer: 0
|
||||
m_Name: Cube
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!65 &1038072790
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1038072789}
|
||||
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!23 &1038072791
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1038072789}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 2
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!33 &1038072792
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1038072789}
|
||||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!4 &1038072793
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1038072789}
|
||||
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_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1176001023
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1176001024}
|
||||
- component: {fileID: 1176001025}
|
||||
m_Layer: 0
|
||||
m_Name: Camera
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1176001024
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1176001023}
|
||||
m_LocalRotation: {x: 0.30290222, y: 0, z: 0, w: 0.95302165}
|
||||
m_LocalPosition: {x: 0, y: 7.09, z: -9.2}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 265738020}
|
||||
- {fileID: 341227470}
|
||||
- {fileID: 1311286875}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 35.264, y: 0, z: 0}
|
||||
--- !u!114 &1176001025
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1176001023}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 58db32f794614503b9c8d13bf8729521, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
logicalCamera: {fileID: 1176001024}
|
||||
physicalCamera: {fileID: 265738020}
|
||||
pivot: {fileID: 19609788}
|
||||
minZoomTarget: {fileID: 341227470}
|
||||
maxZoomTarget: {fileID: 1311286875}
|
||||
--- !u!1 &1311286874
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1311286875}
|
||||
m_Layer: 0
|
||||
m_Name: MaxZoomTarget
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1311286875
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1311286874}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1176001024}
|
||||
m_RootOrder: -1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1001 &5742654212719732323
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6229410894397123332, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: TestEnemy
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
7
Assets/Scenes/test.unity.meta
generated
Normal file
7
Assets/Scenes/test.unity.meta
generated
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 556aa0ef9a62bc7498d2cdce4bbc51d2
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/Scriptables.meta
generated
Normal file
8
Assets/Scriptables.meta
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1d13d7aac40657841955febd4faabbfa
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
19
Assets/Scriptables/EnemyAttributes.asset
generated
Normal file
19
Assets/Scriptables/EnemyAttributes.asset
generated
Normal file
@@ -0,0 +1,19 @@
|
||||
%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: c5304ff6dfe84844887d751cee48606a, type: 3}
|
||||
m_Name: EnemyAttributes
|
||||
m_EditorClassIdentifier:
|
||||
STR: {fileID: 0}
|
||||
CON: {fileID: 0}
|
||||
SPD: {fileID: 0}
|
||||
RNG: {fileID: 0}
|
||||
MND: {fileID: 0}
|
8
Assets/Scriptables/EnemyAttributes.asset.meta
generated
Normal file
8
Assets/Scriptables/EnemyAttributes.asset.meta
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d5bf638cf02c5b94cb9874d4414c1b8a
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
16
Assets/Scriptables/HeroClass.asset
generated
Normal file
16
Assets/Scriptables/HeroClass.asset
generated
Normal file
@@ -0,0 +1,16 @@
|
||||
%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: b153bf1124e797a4ca8a1c4acd0e787d, type: 3}
|
||||
m_Name: HeroClass
|
||||
m_EditorClassIdentifier:
|
||||
Name: Example
|
||||
Help: This is an example class that a hero could have.
|
8
Assets/Scriptables/HeroClass.asset.meta
generated
Normal file
8
Assets/Scriptables/HeroClass.asset.meta
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b690599e540c0c442ad13de1827e7cd6
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
15
Assets/Scriptables/HeroParty.asset
generated
Normal file
15
Assets/Scriptables/HeroParty.asset
generated
Normal file
@@ -0,0 +1,15 @@
|
||||
%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: f0603cf6e7f1d884e89c3eb6a478a96c, type: 3}
|
||||
m_Name: HeroParty
|
||||
m_EditorClassIdentifier:
|
||||
unitList: []
|
8
Assets/Scriptables/HeroParty.asset.meta
generated
Normal file
8
Assets/Scriptables/HeroParty.asset.meta
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c9a46588e6ec04d4d91bb80fdffd7869
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
17
Assets/Scriptables/StatEffect.asset
generated
Normal file
17
Assets/Scriptables/StatEffect.asset
generated
Normal file
@@ -0,0 +1,17 @@
|
||||
%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: 494a21c06960ec442a7a6806f8aefedb, type: 3}
|
||||
m_Name: StatEffect
|
||||
m_EditorClassIdentifier:
|
||||
Base: 0
|
||||
Permyriad: 0
|
||||
Flat: 0
|
8
Assets/Scriptables/StatEffect.asset.meta
generated
Normal file
8
Assets/Scriptables/StatEffect.asset.meta
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4c96040df8ebed746832db7857b25bed
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/Scriptables/Waves.meta
generated
Normal file
8
Assets/Scriptables/Waves.meta
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 409432f90c2931d49a55a87ded944aa9
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
19
Assets/Scriptables/Waves/SpawnPack_Test.asset
generated
Normal file
19
Assets/Scriptables/Waves/SpawnPack_Test.asset
generated
Normal file
@@ -0,0 +1,19 @@
|
||||
%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: 52673fed940f4a67b5a08641a55feff6, type: 3}
|
||||
m_Name: SpawnPack_Test
|
||||
m_EditorClassIdentifier:
|
||||
possibleEnemies:
|
||||
- {fileID: 7321161463868935016, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
- {fileID: 1158114420728610952, guid: 9dff131d77697b242ae2e2b68aa7e1db, type: 3}
|
||||
minCount: 30
|
||||
maxCount: 50
|
8
Assets/Scriptables/Waves/SpawnPack_Test.asset.meta
generated
Normal file
8
Assets/Scriptables/Waves/SpawnPack_Test.asset.meta
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 970a884aa40996749b022ebb2765d769
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
33
Assets/Scriptables/Waves/SpawnWave_Test.asset
generated
Normal file
33
Assets/Scriptables/Waves/SpawnWave_Test.asset
generated
Normal file
@@ -0,0 +1,33 @@
|
||||
%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: 17a69c35e3e64b6d9f655533478f9772, type: 3}
|
||||
m_Name: SpawnWave_Test
|
||||
m_EditorClassIdentifier:
|
||||
packs:
|
||||
- {fileID: 11400000, guid: 970a884aa40996749b022ebb2765d769, type: 2}
|
||||
- {fileID: 11400000, guid: 970a884aa40996749b022ebb2765d769, type: 2}
|
||||
- {fileID: 11400000, guid: 970a884aa40996749b022ebb2765d769, type: 2}
|
||||
- {fileID: 11400000, guid: 970a884aa40996749b022ebb2765d769, type: 2}
|
||||
- {fileID: 11400000, guid: 970a884aa40996749b022ebb2765d769, type: 2}
|
||||
- {fileID: 11400000, guid: 970a884aa40996749b022ebb2765d769, type: 2}
|
||||
- {fileID: 11400000, guid: 970a884aa40996749b022ebb2765d769, type: 2}
|
||||
- {fileID: 11400000, guid: 970a884aa40996749b022ebb2765d769, type: 2}
|
||||
- {fileID: 11400000, guid: 970a884aa40996749b022ebb2765d769, type: 2}
|
||||
- {fileID: 11400000, guid: 970a884aa40996749b022ebb2765d769, type: 2}
|
||||
- {fileID: 11400000, guid: 970a884aa40996749b022ebb2765d769, type: 2}
|
||||
- {fileID: 11400000, guid: 970a884aa40996749b022ebb2765d769, type: 2}
|
||||
distribution: 2
|
||||
radius: 50
|
||||
packRadius: 7
|
||||
timeBetweenSpawns: 0.01
|
||||
timeBetweenPacks: 0.1
|
||||
timeToComplete: 0
|
8
Assets/Scriptables/Waves/SpawnWave_Test.asset.meta
generated
Normal file
8
Assets/Scriptables/Waves/SpawnWave_Test.asset.meta
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e7512725c2f0b3148bd090141c5eed5d
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -1,38 +1,24 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
[Serializable]
|
||||
public struct Attribute
|
||||
{
|
||||
[SerializeField]
|
||||
private long _base;
|
||||
public long Base;
|
||||
|
||||
public Attribute(long stat)
|
||||
{
|
||||
_base = stat;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Permanently increase the stat value.
|
||||
/// </summary>
|
||||
/// <param name="by">Increase amount.</param>
|
||||
public void LevelUp(long by)
|
||||
{
|
||||
_base += by;
|
||||
}
|
||||
public Attribute(long stat) { Base = stat; }
|
||||
|
||||
/// <summary>
|
||||
/// Calculates the stat value with accumulated buff and debuff modifiers.
|
||||
/// </summary>
|
||||
/// <param name="baseBonus">Additive bonus applied before multiplicative scaling.</param>
|
||||
/// <param name="permyriadBonus">Multiplicative scaling in hundredths of a percent. E.g., 625 permyriad corresponds to 6.25%.</param>
|
||||
/// <param name="flatBonus">Additive bonus applied after multiplicative scaling.</param>
|
||||
/// <returns>(base + baseBonus) * (100% + permyriadBonus) + flatBonus, bounded below by 0.</returns>
|
||||
public long Calc(long baseBonus, long permyriadBonus, long flatBonus)
|
||||
public long Calc(EffectSO effect)
|
||||
{
|
||||
var r = _base + baseBonus;
|
||||
var m = permyriadBonus + 10000;
|
||||
r = r * (m / 10000) + (r / 10000) * (m % 10000) + flatBonus;
|
||||
var r = Base + effect.Base;
|
||||
var m = effect.Permyriad + 10000;
|
||||
r = r * (m / 10000) + (r / 10000) * (m % 10000) + effect.Flat;
|
||||
if (r <= 0)
|
||||
{
|
||||
return 0;
|
||||
|
45
Assets/Scripts/EffectSO.cs
Normal file
45
Assets/Scripts/EffectSO.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using UnityEngine;
|
||||
|
||||
[CreateAssetMenu(fileName = "StatEffect", menuName = "Stat Effect")]
|
||||
public class EffectSO : ScriptableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Additive change applied before multiplicative scaling.
|
||||
/// </summary>
|
||||
public long Base;
|
||||
/// <summary>
|
||||
/// Multiplicative scaling in units of hundredth of a percent.
|
||||
/// E.g., 625 permyriad is 6.25%.
|
||||
/// </summary>
|
||||
public long Permyriad;
|
||||
/// <summary>
|
||||
/// Additive change applied after multiplicative scaling.
|
||||
/// </summary>
|
||||
public long Flat;
|
||||
|
||||
/// <summary>
|
||||
/// Create a new attribute effect instance.
|
||||
/// </summary>
|
||||
/// <param name="baseBonus"></param>
|
||||
/// <param name="permyriad"></param>
|
||||
/// <param name="flat"></param>
|
||||
/// <returns></returns>
|
||||
public static EffectSO New(long baseBonus = 0, long permyriad = 0, long flat = 0)
|
||||
{
|
||||
var effect = ScriptableObject.CreateInstance<EffectSO>();
|
||||
effect.Base = baseBonus;
|
||||
effect.Permyriad = permyriad;
|
||||
effect.Flat = flat;
|
||||
return effect;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create a new EffectSO from a percentage.
|
||||
/// </summary>
|
||||
/// <param name="p">Percentage. E.g., 6.25f results in a Permyriad of 625.</param>
|
||||
/// <returns>Effect with the given percentage.</returns>
|
||||
public static EffectSO FromPercent(float p)
|
||||
{
|
||||
return New(permyriad: (long)(p * 100));
|
||||
}
|
||||
}
|
11
Assets/Scripts/EffectSO.cs.meta
generated
Normal file
11
Assets/Scripts/EffectSO.cs.meta
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 494a21c06960ec442a7a6806f8aefedb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
181
Assets/Scripts/Enemy.cs
Normal file
181
Assets/Scripts/Enemy.cs
Normal file
@@ -0,0 +1,181 @@
|
||||
using RuntimeSet;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Assertions;
|
||||
|
||||
namespace DefaultNamespace
|
||||
{
|
||||
public class Enemy : MonoBehaviour
|
||||
{
|
||||
private enum BehaviorState
|
||||
{
|
||||
Create,
|
||||
Spawning,
|
||||
Chasing,
|
||||
Attacking,
|
||||
Feared,
|
||||
Dead,
|
||||
}
|
||||
|
||||
[SerializeField] private EnemyAttributesSO attributes;
|
||||
[SerializeField] private EnemyRuntimeSetSO enemySet;
|
||||
[SerializeField] private HeroUnitRuntimeSetSO heroSet;
|
||||
[SerializeField] private GameObject target;
|
||||
// TODO(zeph): Having behavior as a serialized member is convenient for
|
||||
// experimentation early on so we can change it mid-play through the
|
||||
// inspector, but later we'll more likely want it to be a property.
|
||||
[SerializeField] private BehaviorState _behavior = BehaviorState.Spawning;
|
||||
[SerializeField] private float _behaviorTime = 0;
|
||||
[SerializeField] private float _fear = 0;
|
||||
[SerializeField] private long _hp;
|
||||
|
||||
private void Update()
|
||||
{
|
||||
// When the current behavior indicates movement, we do it in Update
|
||||
// to ensure it is smooth at all framerates.
|
||||
if (_behavior != BehaviorState.Chasing && _behavior != BehaviorState.Feared)
|
||||
{
|
||||
// No movement.
|
||||
return;
|
||||
}
|
||||
if (target == null)
|
||||
{
|
||||
// No target. Find a new one.
|
||||
Retarget();
|
||||
return;
|
||||
}
|
||||
// TODO(zeph): how do we actually,, get SPD attribute
|
||||
var spd = SpaceSpeed(1000, Time.deltaTime);
|
||||
var to = Vector3.MoveTowards(transform.position, target.transform.position, spd);
|
||||
if (_behavior == BehaviorState.Feared)
|
||||
{
|
||||
// Move away rather than toward.
|
||||
// TODO(zeph): this will limit speed moving away by distance
|
||||
// to target if we're close
|
||||
to = transform.position - 2 * (transform.position - to);
|
||||
}
|
||||
transform.position = to;
|
||||
}
|
||||
|
||||
private void FixedUpdate()
|
||||
{
|
||||
// We do behavior changes in the fixed update so that enemy actions
|
||||
// do not depend on the framerate. Since movement happens in
|
||||
// Update, the overall effect as framerate varies is that enemies
|
||||
// might change their behaviors at slightly different distances,
|
||||
// but they'll always be in a given state for the same duration.
|
||||
// TODO(zeph): we could probably do this with coroutines instead,
|
||||
// also i still haven't read anything about the actual fsm system
|
||||
_behaviorTime += Time.fixedDeltaTime;
|
||||
float dd;
|
||||
switch (_behavior)
|
||||
{
|
||||
case BehaviorState.Create:
|
||||
// TODO(zeph): calculate starting hp from CON attribute
|
||||
_hp = 1;
|
||||
SetBehavior(BehaviorState.Spawning);
|
||||
break;
|
||||
case BehaviorState.Spawning:
|
||||
// TODO(zeph): move spawn time to an asset
|
||||
if (_behaviorTime >= 0.5)
|
||||
{
|
||||
Retarget();
|
||||
SetBehavior(BehaviorState.Chasing);
|
||||
}
|
||||
break;
|
||||
case BehaviorState.Chasing:
|
||||
dd = SquareDistanceToTarget();
|
||||
// TODO(zeph): RNG attribute
|
||||
if (dd <= SpaceRange(20000))
|
||||
{
|
||||
SetBehavior(BehaviorState.Attacking);
|
||||
}
|
||||
break;
|
||||
case BehaviorState.Attacking:
|
||||
dd = SquareDistanceToTarget();
|
||||
if (dd > SpaceRange(20000))
|
||||
{
|
||||
SetBehavior(BehaviorState.Chasing);
|
||||
}
|
||||
break;
|
||||
case BehaviorState.Feared:
|
||||
if (_behaviorTime > _fear)
|
||||
{
|
||||
SetBehavior(BehaviorState.Chasing);
|
||||
}
|
||||
break;
|
||||
case BehaviorState.Dead:
|
||||
// do nothing
|
||||
break;
|
||||
default:
|
||||
// TODO(zeph): unreachable
|
||||
break;
|
||||
}
|
||||
if (_behavior != BehaviorState.Dead && _hp == 0)
|
||||
{
|
||||
SetBehavior(BehaviorState.Dead);
|
||||
// TODO(zeph): put a dead time constant somewhere
|
||||
Destroy(gameObject, 10f);
|
||||
}
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
Assert.IsNotNull(enemySet);
|
||||
enemySet.Add(this);
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
enemySet.Remove(this);
|
||||
}
|
||||
|
||||
private void Retarget()
|
||||
{
|
||||
if (heroSet.IsEmpty)
|
||||
{
|
||||
// No heroes to target.
|
||||
// TODO(zeph): switch to a special behavior?
|
||||
target = null;
|
||||
return;
|
||||
}
|
||||
// TODO(zeph): target based on threat, once threat exists
|
||||
var k = Random.Range(0, heroSet.Count);
|
||||
target = heroSet[k].gameObject;
|
||||
}
|
||||
|
||||
private void SetBehavior(BehaviorState behavior)
|
||||
{
|
||||
_behavior = behavior;
|
||||
_behaviorTime = 0;
|
||||
}
|
||||
|
||||
private float SquareDistanceToTarget()
|
||||
{
|
||||
return Vector3.Magnitude(transform.position - target.transform.position);
|
||||
}
|
||||
|
||||
public void Fear(float dur)
|
||||
{
|
||||
// If the enemy is already feared for a longer duration, don't
|
||||
// shorten it.
|
||||
if (_behavior == BehaviorState.Feared && _fear - _behaviorTime >= dur)
|
||||
{
|
||||
return;
|
||||
}
|
||||
_fear = dur;
|
||||
SetBehavior(BehaviorState.Feared);
|
||||
}
|
||||
|
||||
private static float SpaceSpeed(long spd, float dt)
|
||||
{
|
||||
// For now, treat SPD as units of ten thousandths of a unit per second.
|
||||
return (spd / 10000) * dt;
|
||||
}
|
||||
|
||||
private static float SpaceRange(long rng)
|
||||
{
|
||||
// Treat RNG as units of ten thousandths of a sqrt-meter.
|
||||
return rng / 10000;
|
||||
}
|
||||
}
|
||||
}
|
3
Assets/Scripts/Enemy.cs.meta
generated
Normal file
3
Assets/Scripts/Enemy.cs.meta
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0ce366659158473783c8d53d2f3fc5f5
|
||||
timeCreated: 1690856221
|
18
Assets/Scripts/EnemyAttributesSO.cs
Normal file
18
Assets/Scripts/EnemyAttributesSO.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using UnityEngine;
|
||||
|
||||
[CreateAssetMenu(fileName = "EnemyAttributes", menuName = "Enemy Attributes")]
|
||||
public class EnemyAttributesSO : ScriptableObject
|
||||
{
|
||||
[SerializeField] private Attribute STR;
|
||||
[SerializeField] private Attribute CON;
|
||||
[SerializeField] private Attribute SPD;
|
||||
[SerializeField] private Attribute RNG;
|
||||
[SerializeField] private Attribute MND;
|
||||
public long XP { get; private set; }
|
||||
public long Threat { get; private set; }
|
||||
|
||||
public static EnemyAttributesSO New()
|
||||
{
|
||||
return ScriptableObject.CreateInstance<EnemyAttributesSO>();
|
||||
}
|
||||
}
|
11
Assets/Scripts/EnemyAttributesSO.cs.meta
generated
Normal file
11
Assets/Scripts/EnemyAttributesSO.cs.meta
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c5304ff6dfe84844887d751cee48606a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
3
Assets/Scripts/Events.meta
generated
Normal file
3
Assets/Scripts/Events.meta
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5741392326404cb387003f002d90acee
|
||||
timeCreated: 1690857552
|
17
Assets/Scripts/Events/SpawnWaveEventSO.cs
Normal file
17
Assets/Scripts/Events/SpawnWaveEventSO.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
using Wave;
|
||||
|
||||
namespace Events
|
||||
{
|
||||
[CreateAssetMenu(menuName = "Events/Spawn Wave Event")]
|
||||
public class SpawnWaveEventSO : ScriptableObject
|
||||
{
|
||||
public event UnityAction<SpawnWaveSO> OnEventRaised;
|
||||
|
||||
public void RaiseEvent(SpawnWaveSO spawnWave)
|
||||
{
|
||||
OnEventRaised?.Invoke(spawnWave);
|
||||
}
|
||||
}
|
||||
}
|
3
Assets/Scripts/Events/SpawnWaveEventSO.cs.meta
generated
Normal file
3
Assets/Scripts/Events/SpawnWaveEventSO.cs.meta
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 908e283bf3a54c859a0771fd8aed7bce
|
||||
timeCreated: 1690857571
|
18
Assets/Scripts/HeroAttributesSO.cs
Normal file
18
Assets/Scripts/HeroAttributesSO.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class HeroAttributesSO : ScriptableObject
|
||||
{
|
||||
[SerializeField] private Attribute STR;
|
||||
[SerializeField] private Attribute MAG;
|
||||
[SerializeField] private Attribute DEX;
|
||||
[SerializeField] private Attribute CON;
|
||||
[SerializeField] private Attribute CHA;
|
||||
[SerializeField] private Attribute FTH;
|
||||
|
||||
public static HeroAttributesSO New()
|
||||
{
|
||||
return ScriptableObject.CreateInstance<HeroAttributesSO>();
|
||||
}
|
||||
}
|
11
Assets/Scripts/HeroAttributesSO.cs.meta
generated
Normal file
11
Assets/Scripts/HeroAttributesSO.cs.meta
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 538672e6491e46748a1cc27fe3a52455
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/Scripts/HeroClassSO.cs
Normal file
8
Assets/Scripts/HeroClassSO.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using UnityEngine;
|
||||
|
||||
[CreateAssetMenu(fileName = "HeroClass", menuName = "Hero Class")]
|
||||
public class HeroClassSO : ScriptableObject
|
||||
{
|
||||
[SerializeField] private new string name;
|
||||
[SerializeField] private string help;
|
||||
}
|
11
Assets/Scripts/HeroClassSO.cs.meta
generated
Normal file
11
Assets/Scripts/HeroClassSO.cs.meta
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b153bf1124e797a4ca8a1c4acd0e787d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
32
Assets/Scripts/HeroUnit.cs
Normal file
32
Assets/Scripts/HeroUnit.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using RuntimeSet;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Assertions;
|
||||
|
||||
[assembly: InternalsVisibleTo("TestsPlaymode")]
|
||||
|
||||
/// <summary>
|
||||
/// Component that makes a duder a duder.
|
||||
/// Manages class, skills, level, attrs, and AI.
|
||||
/// </summary>
|
||||
public class HeroUnit : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private new string name;
|
||||
[SerializeField] private HeroClassSO class_;
|
||||
[SerializeField] private long level;
|
||||
[SerializeField] private long xp;
|
||||
[SerializeField] private HeroAttributesSO attrs;
|
||||
[SerializeField] private HeroUnitRuntimeSetSO _party;
|
||||
internal HeroUnitRuntimeSetSO party => _party;
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
Assert.IsNotNull(_party);
|
||||
_party.Add(this);
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
_party.Remove(this);
|
||||
}
|
||||
}
|
11
Assets/Scripts/HeroUnit.cs.meta
generated
Normal file
11
Assets/Scripts/HeroUnit.cs.meta
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 583304b24f3e6394f9e4d49747e22193
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -1,3 +1,16 @@
|
||||
{
|
||||
"name": "IdleSurvivors"
|
||||
}
|
||||
"name": "IdleSurvivors",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:75469ad4d38634e559750d17036d5f7c"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
3
Assets/Scripts/Input.meta
generated
Normal file
3
Assets/Scripts/Input.meta
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d0cf95adbbea4f6ea1e1d7c250abb38f
|
||||
timeCreated: 1690824944
|
41
Assets/Scripts/Input/PlayerCameraInputHandler.cs
Normal file
41
Assets/Scripts/Input/PlayerCameraInputHandler.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using DefaultNamespace;
|
||||
using UnityEngine;
|
||||
using UnityEngine.InputSystem;
|
||||
|
||||
namespace Input
|
||||
{
|
||||
public class PlayerCameraInputHandler : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private PlayerCameraController cameraController;
|
||||
[SerializeField] [Range(0, 100)] private float rotationSensitivity;
|
||||
[SerializeField] [Range(0, 1)] private float zoomSensitivity;
|
||||
|
||||
private bool _allowRotation;
|
||||
|
||||
public void OnInputZoom(InputAction.CallbackContext context)
|
||||
{
|
||||
var input = context.ReadValue<float>();
|
||||
var zoomAmount = input * zoomSensitivity * Time.deltaTime;
|
||||
cameraController.Zoom(zoomAmount);
|
||||
}
|
||||
|
||||
public void OnInputRotate(InputAction.CallbackContext context)
|
||||
{
|
||||
if (context.phase != InputActionPhase.Performed) return;
|
||||
if (!_allowRotation) return;
|
||||
|
||||
var input = context.ReadValue<float>();
|
||||
var rotationAmount = input * rotationSensitivity * Time.deltaTime;
|
||||
cameraController.RotateAround(rotationAmount);
|
||||
}
|
||||
|
||||
public void OnInputHoldToRotate(InputAction.CallbackContext context)
|
||||
{
|
||||
_allowRotation = context.phase switch
|
||||
{
|
||||
InputActionPhase.Performed => true,
|
||||
_ => false
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
3
Assets/Scripts/Input/PlayerCameraInputHandler.cs.meta
generated
Normal file
3
Assets/Scripts/Input/PlayerCameraInputHandler.cs.meta
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0b94be55d5ec4fedb531d50297528d3b
|
||||
timeCreated: 1690824962
|
3
Assets/Scripts/Level.meta
generated
Normal file
3
Assets/Scripts/Level.meta
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: eb1638a1c58a4878adf9166dddc40738
|
||||
timeCreated: 1690927890
|
18
Assets/Scripts/Level/LevelDirector.cs
Normal file
18
Assets/Scripts/Level/LevelDirector.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using Wave;
|
||||
|
||||
namespace Level
|
||||
{
|
||||
public class LevelDirector : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private WaveSpawner waveSpawner;
|
||||
[SerializeField] private List<SpawnWaveSO> spawnWaves;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
waveSpawner.Begin(spawnWaves);
|
||||
}
|
||||
}
|
||||
}
|
3
Assets/Scripts/Level/LevelDirector.cs.meta
generated
Normal file
3
Assets/Scripts/Level/LevelDirector.cs.meta
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a91533ae182d470c88ce779956713e02
|
||||
timeCreated: 1690927896
|
37
Assets/Scripts/PlayerCameraController.cs
Normal file
37
Assets/Scripts/PlayerCameraController.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
|
||||
namespace DefaultNamespace
|
||||
{
|
||||
public class PlayerCameraController : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private Transform logicalCamera;
|
||||
[SerializeField] private Transform physicalCamera;
|
||||
|
||||
[SerializeField] private Transform pivot;
|
||||
[SerializeField] private Transform minZoomTarget;
|
||||
[SerializeField] private Transform maxZoomTarget;
|
||||
|
||||
private float _zoomAmount;
|
||||
|
||||
/// <summary>
|
||||
/// Rotates the logical camera around the pivot by angle degrees.
|
||||
/// </summary>
|
||||
/// <param name="angle">The amount to rotate, in degrees</param>
|
||||
public void RotateAround(float angle)
|
||||
{
|
||||
logicalCamera.RotateAround(pivot.position, Vector3.up, angle);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Lerps the physical camera between the min zoom target and the max zoom target by the current zoom + amount
|
||||
/// </summary>
|
||||
/// <param name="amount"></param>
|
||||
public void Zoom(float amount)
|
||||
{
|
||||
_zoomAmount = Mathf.Clamp01(_zoomAmount + amount);
|
||||
physicalCamera.localPosition = Vector3.Lerp(minZoomTarget.localPosition, maxZoomTarget.localPosition, _zoomAmount);
|
||||
}
|
||||
}
|
||||
}
|
3
Assets/Scripts/PlayerCameraController.cs.meta
generated
Normal file
3
Assets/Scripts/PlayerCameraController.cs.meta
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 58db32f794614503b9c8d13bf8729521
|
||||
timeCreated: 1690765399
|
3
Assets/Scripts/RuntimeSet.meta
generated
Normal file
3
Assets/Scripts/RuntimeSet.meta
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e9f6f30f3d8e4445a4a25d03245b2645
|
||||
timeCreated: 1691632737
|
10
Assets/Scripts/RuntimeSet/EnemyRuntimeSetSO.cs
Normal file
10
Assets/Scripts/RuntimeSet/EnemyRuntimeSetSO.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using DefaultNamespace;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RuntimeSet
|
||||
{
|
||||
[CreateAssetMenu(fileName = "EnemyRuntimeSet",menuName = "Runtime Set/Enemy")]
|
||||
public class EnemyRuntimeSetSO : RuntimeSetSO<Enemy>
|
||||
{
|
||||
}
|
||||
}
|
3
Assets/Scripts/RuntimeSet/EnemyRuntimeSetSO.cs.meta
generated
Normal file
3
Assets/Scripts/RuntimeSet/EnemyRuntimeSetSO.cs.meta
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5f1e329a7f6343f88553db21ffb55693
|
||||
timeCreated: 1690858329
|
9
Assets/Scripts/RuntimeSet/HeroUnitRuntimeSet.cs
Normal file
9
Assets/Scripts/RuntimeSet/HeroUnitRuntimeSet.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace RuntimeSet
|
||||
{
|
||||
[CreateAssetMenu(fileName = "EnemyRuntimeSet",menuName = "Runtime Set/Hero Unit")]
|
||||
public class HeroUnitRuntimeSetSO : RuntimeSetSO<HeroUnit>
|
||||
{
|
||||
}
|
||||
}
|
3
Assets/Scripts/RuntimeSet/HeroUnitRuntimeSet.cs.meta
generated
Normal file
3
Assets/Scripts/RuntimeSet/HeroUnitRuntimeSet.cs.meta
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0ec1a0df7a5949a2959596c722680f76
|
||||
timeCreated: 1691632762
|
43
Assets/Scripts/RuntimeSet/RuntimeSetSO.cs
Normal file
43
Assets/Scripts/RuntimeSet/RuntimeSetSO.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RuntimeSet
|
||||
{
|
||||
public abstract class RuntimeSetSO<T> : ScriptableObject, IEnumerable<T>
|
||||
{
|
||||
[HideInInspector] [SerializeField] private List<T> items = new();
|
||||
|
||||
protected IReadOnlyCollection<T> Items => items;
|
||||
public bool IsEmpty => items.Count == 0;
|
||||
public int Count => items.Count;
|
||||
|
||||
public void Add(T item)
|
||||
{
|
||||
if (!items.Contains(item))
|
||||
{
|
||||
items.Add(item);
|
||||
}
|
||||
}
|
||||
|
||||
public void Remove(T item)
|
||||
{
|
||||
if (items.Contains(item))
|
||||
{
|
||||
items.Remove(item);
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerator<T> GetEnumerator()
|
||||
{
|
||||
return items.GetEnumerator();
|
||||
}
|
||||
|
||||
IEnumerator IEnumerable.GetEnumerator()
|
||||
{
|
||||
return GetEnumerator();
|
||||
}
|
||||
|
||||
public T this[int index] { get { return items[index]; } }
|
||||
}
|
||||
}
|
3
Assets/Scripts/RuntimeSet/RuntimeSetSO.cs.meta
generated
Normal file
3
Assets/Scripts/RuntimeSet/RuntimeSetSO.cs.meta
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 942f0916a83b433891dd4c6a9bbb50fd
|
||||
timeCreated: 1690858304
|
3
Assets/Scripts/Wave.meta
generated
Normal file
3
Assets/Scripts/Wave.meta
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6515ffdab88e4d23b8f09dace4a2157a
|
||||
timeCreated: 1690921607
|
9
Assets/Scripts/Wave/SpawnDistribution.cs
Normal file
9
Assets/Scripts/Wave/SpawnDistribution.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace Wave
|
||||
{
|
||||
public enum SpawnDistribution
|
||||
{
|
||||
Uniform,
|
||||
Random,
|
||||
DiskRandom
|
||||
}
|
||||
}
|
3
Assets/Scripts/Wave/SpawnDistribution.cs.meta
generated
Normal file
3
Assets/Scripts/Wave/SpawnDistribution.cs.meta
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2a4df8269a27463eaf87da9ae1283dcb
|
||||
timeCreated: 1690925288
|
32
Assets/Scripts/Wave/SpawnPackSO.cs
Normal file
32
Assets/Scripts/Wave/SpawnPackSO.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using DefaultNamespace;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Assertions;
|
||||
|
||||
namespace Wave
|
||||
{
|
||||
[CreateAssetMenu(fileName = "SpawnPack", menuName = "Spawn/Pack", order = 0)]
|
||||
public class SpawnPackSO : ScriptableObject
|
||||
{
|
||||
[SerializeField] private List<Enemy> possibleEnemies;
|
||||
[SerializeField] [Min(0)] private int minCount;
|
||||
[SerializeField] [Min(0)] private int maxCount;
|
||||
|
||||
public ReadOnlyCollection<Enemy> EnemiesToSpawn()
|
||||
{
|
||||
Assert.IsTrue(possibleEnemies.Count > 0);
|
||||
|
||||
var count = Random.Range(minCount, maxCount);
|
||||
var enemiesToSpawn = new List<Enemy>();
|
||||
|
||||
for (var i = 0; i < count; i++)
|
||||
{
|
||||
var enemyIndex = Random.Range(0, possibleEnemies.Count);
|
||||
enemiesToSpawn.Add(possibleEnemies[enemyIndex]);
|
||||
}
|
||||
|
||||
return enemiesToSpawn.AsReadOnly();
|
||||
}
|
||||
}
|
||||
}
|
3
Assets/Scripts/Wave/SpawnPackSO.cs.meta
generated
Normal file
3
Assets/Scripts/Wave/SpawnPackSO.cs.meta
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 52673fed940f4a67b5a08641a55feff6
|
||||
timeCreated: 1690938542
|
27
Assets/Scripts/Wave/SpawnWaveSO.cs
Normal file
27
Assets/Scripts/Wave/SpawnWaveSO.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
|
||||
namespace Wave
|
||||
{
|
||||
[CreateAssetMenu(fileName = "SpawnWave", menuName = "Spawn/Wave", order = 0)]
|
||||
public class SpawnWaveSO : ScriptableObject
|
||||
{
|
||||
[SerializeField] private List<SpawnPackSO> packs;
|
||||
[SerializeField] private SpawnDistribution distribution;
|
||||
[SerializeField] [Min(10)] private float radius;
|
||||
[SerializeField] [Min(0)] private float packRadius;
|
||||
[SerializeField] [Min(0)] private float timeBetweenSpawns;
|
||||
[SerializeField] [Min(0)] private float timeBetweenPacks;
|
||||
[SerializeField] [Min(0)] private float timeToComplete;
|
||||
|
||||
|
||||
public IReadOnlyCollection<SpawnPackSO> Packs => packs;
|
||||
public SpawnDistribution Distribution => distribution;
|
||||
public float Radius => radius;
|
||||
public float PackRadius => packRadius;
|
||||
public float TimeBetweenSpawns => timeBetweenSpawns;
|
||||
public float TimeBetweenPacks => timeBetweenPacks;
|
||||
public float TimeToComplete => timeToComplete;
|
||||
}
|
||||
}
|
3
Assets/Scripts/Wave/SpawnWaveSO.cs.meta
generated
Normal file
3
Assets/Scripts/Wave/SpawnWaveSO.cs.meta
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 17a69c35e3e64b6d9f655533478f9772
|
||||
timeCreated: 1690856578
|
121
Assets/Scripts/Wave/WaveSpawner.cs
Normal file
121
Assets/Scripts/Wave/WaveSpawner.cs
Normal file
@@ -0,0 +1,121 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using DefaultNamespace;
|
||||
using Events;
|
||||
using RuntimeSet;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Assertions;
|
||||
using Random = UnityEngine.Random;
|
||||
|
||||
namespace Wave
|
||||
{
|
||||
public class WaveSpawner : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private SpawnWaveEventSO startNewSpawnWaveEventChannel;
|
||||
[SerializeField] private SpawnWaveEventSO endSpawnWaveEventChannel;
|
||||
|
||||
[SerializeField] private EnemyRuntimeSetSO enemyRuntimeSet;
|
||||
[SerializeField] private Transform spawnCenter;
|
||||
[SerializeField] private float minimumSpawnRadius;
|
||||
[SerializeField] [Min(0)] private float timeBetweenClearedWaves;
|
||||
[SerializeField] [Min(0)] private float timeBeforeFirstWave;
|
||||
|
||||
private float _timeSinceLastSpawnWaveStarted;
|
||||
private Coroutine _handleSpawnWaves;
|
||||
|
||||
private bool HasWaveBeenCleared => enemyRuntimeSet.IsEmpty;
|
||||
|
||||
public void Begin(IEnumerable<SpawnWaveSO> spawnWaves)
|
||||
{
|
||||
Assert.IsNull(_handleSpawnWaves);
|
||||
_handleSpawnWaves = StartCoroutine(CO_HandleSpawnWaves(spawnWaves));
|
||||
}
|
||||
|
||||
public void End()
|
||||
{
|
||||
StopCoroutine(_handleSpawnWaves);
|
||||
}
|
||||
|
||||
private IEnumerator CO_HandleSpawnWaves(IEnumerable<SpawnWaveSO> spawnWaves)
|
||||
{
|
||||
yield return new WaitForSeconds(timeBeforeFirstWave);
|
||||
|
||||
foreach (var spawnWave in spawnWaves)
|
||||
{
|
||||
startNewSpawnWaveEventChannel.RaiseEvent(spawnWave);
|
||||
yield return SpawnWave(spawnWave);
|
||||
_timeSinceLastSpawnWaveStarted = 0.0f;
|
||||
|
||||
yield return new WaitUntil(() => _timeSinceLastSpawnWaveStarted >= spawnWave.TimeToComplete || HasWaveBeenCleared);
|
||||
|
||||
endSpawnWaveEventChannel.RaiseEvent(spawnWave);
|
||||
|
||||
if (HasWaveBeenCleared)
|
||||
{
|
||||
yield return new WaitForSeconds(timeBetweenClearedWaves);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private IEnumerator SpawnWave(SpawnWaveSO spawnWave)
|
||||
{
|
||||
var enemyPacksToSpawn = spawnWave.Packs.Select(pack => pack.EnemiesToSpawn()).ToList().AsReadOnly();
|
||||
|
||||
for (var packN = 0; packN < enemyPacksToSpawn.Count; packN++)
|
||||
{
|
||||
var waveCompletionPercentage = (float)packN / (float)enemyPacksToSpawn.Count;
|
||||
|
||||
var enemyPackSpawnOffset = SampleSpawnOffset(spawnWave.Distribution, spawnWave.Radius, waveCompletionPercentage);
|
||||
enemyPackSpawnOffset += enemyPackSpawnOffset.normalized * (minimumSpawnRadius + spawnWave.PackRadius);
|
||||
|
||||
var enemyPackSpawnPosition = spawnCenter.position + enemyPackSpawnOffset;
|
||||
|
||||
var enemyPackToSpawn = enemyPacksToSpawn[packN];
|
||||
for (var enemyN = 0; enemyN < enemyPackToSpawn.Count; enemyN++)
|
||||
{
|
||||
var packCompletionPercentage = (float)enemyN / (float)enemyPackToSpawn.Count;
|
||||
var enemySpawnOffset = SampleSpawnOffset(SpawnDistribution.DiskRandom, spawnWave.PackRadius, packCompletionPercentage);
|
||||
var enemySpawnPosition = enemyPackSpawnPosition + enemySpawnOffset;
|
||||
|
||||
var spawnedEnemy = Instantiate(enemyPackToSpawn[enemyN], enemySpawnPosition, Quaternion.identity);
|
||||
enemyRuntimeSet.Add(spawnedEnemy);
|
||||
|
||||
if (spawnWave.TimeBetweenSpawns > 0.0f)
|
||||
{
|
||||
yield return new WaitForSeconds(spawnWave.TimeBetweenSpawns);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (spawnWave.TimeBetweenPacks > 0.0f)
|
||||
{
|
||||
yield return new WaitForSeconds(spawnWave.TimeBetweenPacks);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static Vector3 SampleSpawnOffset(SpawnDistribution distribution, float radius, float completionPercentage)
|
||||
{
|
||||
// TODO (Michael): Both the pack and enemy position samplers need to be a bit smarter. I think in most scenarios the pack circle just needs to not overlap with other pack circles.
|
||||
// The enemy spawns probably need something like a poission disk sampler so that monsters dont overlap. The enemy spawn radius at the pack's position should also probably scale with the size of the pack.
|
||||
var angle = completionPercentage * 2 * MathF.PI;
|
||||
var unitCirclePosition = Random.insideUnitCircle;
|
||||
var swizzledUnitCirclePosition = new Vector3(unitCirclePosition.x, 0, unitCirclePosition.y);
|
||||
|
||||
return distribution switch
|
||||
{
|
||||
SpawnDistribution.Uniform => new Vector3(Mathf.Cos(angle), 0, Mathf.Sin(angle)) * radius,
|
||||
SpawnDistribution.Random => swizzledUnitCirclePosition.normalized * radius,
|
||||
SpawnDistribution.DiskRandom => swizzledUnitCirclePosition * radius,
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(distribution), distribution, null)
|
||||
};
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
_timeSinceLastSpawnWaveStarted += Time.deltaTime;
|
||||
}
|
||||
}
|
||||
}
|
3
Assets/Scripts/Wave/WaveSpawner.cs.meta
generated
Normal file
3
Assets/Scripts/Wave/WaveSpawner.cs.meta
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bb718e52728142e4a8db081fd6a36a70
|
||||
timeCreated: 1690856916
|
179
Assets/TestEnemy Variant.prefab
generated
Normal file
179
Assets/TestEnemy Variant.prefab
generated
Normal file
@@ -0,0 +1,179 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &8302155952709515973
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 7488072351778741751}
|
||||
- component: {fileID: 3366913879355185749}
|
||||
- component: {fileID: 1785543729989221829}
|
||||
- component: {fileID: 1100616685365383236}
|
||||
m_Layer: 0
|
||||
m_Name: Capsule
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &7488072351778741751
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8302155952709515973}
|
||||
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_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4279102732078913915}
|
||||
m_RootOrder: -1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!33 &3366913879355185749
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8302155952709515973}
|
||||
m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!23 &1785543729989221829
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8302155952709515973}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 2
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!136 &1100616685365383236
|
||||
CapsuleCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8302155952709515973}
|
||||
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: 2
|
||||
m_Radius: 0.5
|
||||
m_Height: 2
|
||||
m_Direction: 1
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
--- !u!1001 &8470021174966258656
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6229410894397123332, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: TestEnemy Variant
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects:
|
||||
- {fileID: 6791948486170648146, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
m_AddedGameObjects:
|
||||
- targetCorrespondingSourceObject: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 7488072351778741751}
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
--- !u!4 &4279102732078913915 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 5686324643192967835, guid: 200dea255585b154f8222e550c23b55e, type: 3}
|
||||
m_PrefabInstance: {fileID: 8470021174966258656}
|
||||
m_PrefabAsset: {fileID: 0}
|
7
Assets/TestEnemy Variant.prefab.meta
generated
Normal file
7
Assets/TestEnemy Variant.prefab.meta
generated
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9dff131d77697b242ae2e2b68aa7e1db
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
152
Assets/TestEnemy.prefab
generated
Normal file
152
Assets/TestEnemy.prefab
generated
Normal file
@@ -0,0 +1,152 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &6229410894397123332
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5686324643192967835}
|
||||
- component: {fileID: 7321161463868935016}
|
||||
m_Layer: 0
|
||||
m_Name: TestEnemy
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &5686324643192967835
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6229410894397123332}
|
||||
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_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 572175646573100614}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &7321161463868935016
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6229410894397123332}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 0ce366659158473783c8d53d2f3fc5f5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &6791948486170648146
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 572175646573100614}
|
||||
- component: {fileID: 2871351465463266601}
|
||||
- component: {fileID: 4344212730668217775}
|
||||
- component: {fileID: 9190027053535473730}
|
||||
m_Layer: 0
|
||||
m_Name: Model
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &572175646573100614
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6791948486170648146}
|
||||
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_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 5686324643192967835}
|
||||
m_RootOrder: -1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!33 &2871351465463266601
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6791948486170648146}
|
||||
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!23 &4344212730668217775
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6791948486170648146}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 2
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!135 &9190027053535473730
|
||||
SphereCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6791948486170648146}
|
||||
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_Radius: 0.5
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
7
Assets/TestEnemy.prefab.meta
generated
Normal file
7
Assets/TestEnemy.prefab.meta
generated
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 200dea255585b154f8222e550c23b55e
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -7,19 +7,18 @@ using UnityEngine.TestTools;
|
||||
public class AttributeTest
|
||||
{
|
||||
[Test]
|
||||
[TestCase(1000000, 0, 0, 0, 0, ExpectedResult = 1000000)]
|
||||
[TestCase(1000000, 1, 0, 0, 0, ExpectedResult = 1000001)]
|
||||
[TestCase(1000000, 0, 2, 0, 0, ExpectedResult = 1000002)]
|
||||
[TestCase(1000000, 0, 0, 10000, 0, ExpectedResult = 2000000)]
|
||||
[TestCase(1000000, 0, 0, 0, 3, ExpectedResult = 1000003)]
|
||||
[TestCase(0, 1000000, 1000000, 5000, 1000, ExpectedResult = 3001000)]
|
||||
[TestCase(1000000, 0, 0, -10000, 0, ExpectedResult = 0)]
|
||||
[TestCase(1000000, 0, 0, -20000, 0, ExpectedResult = 0)]
|
||||
[TestCase(1000000, 0, 0, -20000, 50, ExpectedResult = 0)]
|
||||
public long Calc(long startStat, long levelUp, long baseBonus, long permyriadBonus, long flatBonus)
|
||||
[TestCase(1000000, 0, 0, 0, ExpectedResult = 1000000)]
|
||||
[TestCase(1000000, 1, 0, 0, ExpectedResult = 1000001)]
|
||||
[TestCase(1000000, 0, 2, 0, ExpectedResult = 1000200)]
|
||||
[TestCase(1000000, 0, 0, 10000, ExpectedResult = 1010000)]
|
||||
[TestCase(0, 1000000, 5000, 1000000, ExpectedResult = 2500000)]
|
||||
[TestCase(1000000, 0, -10000, 0, ExpectedResult = 0)]
|
||||
[TestCase(1000000, 0, -20000, 0, ExpectedResult = 0)]
|
||||
[TestCase(1000000, 0, -20000, 0, ExpectedResult = 0)]
|
||||
public long Value(long startStat, long baseBonus, long permyriadBonus, long flatBonus)
|
||||
{
|
||||
var attr = new Attribute(startStat);
|
||||
attr.LevelUp(levelUp);
|
||||
return attr.Calc(baseBonus, permyriadBonus, flatBonus);
|
||||
var effect = EffectSO.New(baseBonus, permyriadBonus, flatBonus);
|
||||
return attr.Calc(effect);
|
||||
}
|
||||
}
|
||||
|
8
Assets/TestsPlaymode.meta
generated
Normal file
8
Assets/TestsPlaymode.meta
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 761a28b9566afe848955bfe8200ff125
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
22
Assets/TestsPlaymode/HeroPartyTest.cs
Normal file
22
Assets/TestsPlaymode/HeroPartyTest.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Collections;
|
||||
using NUnit.Framework;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.TestTools;
|
||||
|
||||
public class HeroPartyTest
|
||||
{
|
||||
[UnityTest]
|
||||
public IEnumerator HeroPartyGetsAllTheHeroes()
|
||||
{
|
||||
var prefab = AssetDatabase.LoadAssetAtPath<GameObject>("Assets/Prefabs/Hero.prefab");
|
||||
Assert.IsNotNull(prefab);
|
||||
var instance = Object.Instantiate(prefab);
|
||||
var hero = instance.GetComponent<HeroUnit>();
|
||||
yield return null;
|
||||
Assert.AreEqual(1, hero.party.Count);
|
||||
Object.Destroy(instance);
|
||||
yield return null;
|
||||
Assert.IsEmpty(hero.party);
|
||||
}
|
||||
}
|
11
Assets/TestsPlaymode/HeroPartyTest.cs.meta
generated
Normal file
11
Assets/TestsPlaymode/HeroPartyTest.cs.meta
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 12e575ff764956245a428c77cced4e48
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
22
Assets/TestsPlaymode/TestsPlaymode.asmdef
Normal file
22
Assets/TestsPlaymode/TestsPlaymode.asmdef
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "TestsPlaymode",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"UnityEngine.TestRunner",
|
||||
"UnityEditor.TestRunner",
|
||||
"IdleSurvivors"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": true,
|
||||
"precompiledReferences": [
|
||||
"nunit.framework.dll"
|
||||
],
|
||||
"autoReferenced": false,
|
||||
"defineConstraints": [
|
||||
"UNITY_INCLUDE_TESTS"
|
||||
],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
7
Assets/TestsPlaymode/TestsPlaymode.asmdef.meta
generated
Normal file
7
Assets/TestsPlaymode/TestsPlaymode.asmdef.meta
generated
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: da0ac170c269d9342b202cf3000da737
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -2,6 +2,7 @@
|
||||
"dependencies": {
|
||||
"com.unity.collab-proxy": "2.0.5",
|
||||
"com.unity.feature.development": "1.0.1",
|
||||
"com.unity.inputsystem": "1.6.3",
|
||||
"com.unity.textmeshpro": "3.0.6",
|
||||
"com.unity.timeline": "1.7.4",
|
||||
"com.unity.ugui": "1.0.0",
|
||||
|
@@ -60,6 +60,15 @@
|
||||
"dependencies": {},
|
||||
"url": "https://packages.unity.com"
|
||||
},
|
||||
"com.unity.inputsystem": {
|
||||
"version": "1.6.3",
|
||||
"depth": 0,
|
||||
"source": "registry",
|
||||
"dependencies": {
|
||||
"com.unity.modules.uielements": "1.0.0"
|
||||
},
|
||||
"url": "https://packages.unity.com"
|
||||
},
|
||||
"com.unity.performance.profile-analyzer": {
|
||||
"version": "1.2.2",
|
||||
"depth": 1,
|
||||
|
5
ProjectSettings/ProjectSettings.asset
generated
5
ProjectSettings/ProjectSettings.asset
generated
@@ -153,7 +153,8 @@ PlayerSettings:
|
||||
resetResolutionOnWindowResize: 0
|
||||
androidSupportedAspectRatio: 1
|
||||
androidMaxAspectRatio: 2.1
|
||||
applicationIdentifier: {}
|
||||
applicationIdentifier:
|
||||
Standalone: com.DefaultCompany.IdleSurvivors
|
||||
buildNumber:
|
||||
Bratwurst: 0
|
||||
Standalone: 0
|
||||
@@ -744,7 +745,7 @@ PlayerSettings:
|
||||
hmiLogStartupTiming: 0
|
||||
hmiCpuConfiguration:
|
||||
apiCompatibilityLevel: 6
|
||||
activeInputHandler: 0
|
||||
activeInputHandler: 1
|
||||
windowsGamepadBackendHint: 0
|
||||
cloudProjectId:
|
||||
framebufferDepthMemorylessMode: 0
|
||||
|
121
ProjectSettings/SceneTemplateSettings.json
Normal file
121
ProjectSettings/SceneTemplateSettings.json
Normal file
@@ -0,0 +1,121 @@
|
||||
{
|
||||
"templatePinStates": [],
|
||||
"dependencyTypeInfos": [
|
||||
{
|
||||
"userAdded": false,
|
||||
"type": "UnityEngine.AnimationClip",
|
||||
"defaultInstantiationMode": 0
|
||||
},
|
||||
{
|
||||
"userAdded": false,
|
||||
"type": "UnityEditor.Animations.AnimatorController",
|
||||
"defaultInstantiationMode": 0
|
||||
},
|
||||
{
|
||||
"userAdded": false,
|
||||
"type": "UnityEngine.AnimatorOverrideController",
|
||||
"defaultInstantiationMode": 0
|
||||
},
|
||||
{
|
||||
"userAdded": false,
|
||||
"type": "UnityEditor.Audio.AudioMixerController",
|
||||
"defaultInstantiationMode": 0
|
||||
},
|
||||
{
|
||||
"userAdded": false,
|
||||
"type": "UnityEngine.ComputeShader",
|
||||
"defaultInstantiationMode": 1
|
||||
},
|
||||
{
|
||||
"userAdded": false,
|
||||
"type": "UnityEngine.Cubemap",
|
||||
"defaultInstantiationMode": 0
|
||||
},
|
||||
{
|
||||
"userAdded": false,
|
||||
"type": "UnityEngine.GameObject",
|
||||
"defaultInstantiationMode": 0
|
||||
},
|
||||
{
|
||||
"userAdded": false,
|
||||
"type": "UnityEditor.LightingDataAsset",
|
||||
"defaultInstantiationMode": 0
|
||||
},
|
||||
{
|
||||
"userAdded": false,
|
||||
"type": "UnityEngine.LightingSettings",
|
||||
"defaultInstantiationMode": 0
|
||||
},
|
||||
{
|
||||
"userAdded": false,
|
||||
"type": "UnityEngine.Material",
|
||||
"defaultInstantiationMode": 0
|
||||
},
|
||||
{
|
||||
"userAdded": false,
|
||||
"type": "UnityEditor.MonoScript",
|
||||
"defaultInstantiationMode": 1
|
||||
},
|
||||
{
|
||||
"userAdded": false,
|
||||
"type": "UnityEngine.PhysicMaterial",
|
||||
"defaultInstantiationMode": 0
|
||||
},
|
||||
{
|
||||
"userAdded": false,
|
||||
"type": "UnityEngine.PhysicsMaterial2D",
|
||||
"defaultInstantiationMode": 0
|
||||
},
|
||||
{
|
||||
"userAdded": false,
|
||||
"type": "UnityEngine.Rendering.PostProcessing.PostProcessProfile",
|
||||
"defaultInstantiationMode": 0
|
||||
},
|
||||
{
|
||||
"userAdded": false,
|
||||
"type": "UnityEngine.Rendering.PostProcessing.PostProcessResources",
|
||||
"defaultInstantiationMode": 0
|
||||
},
|
||||
{
|
||||
"userAdded": false,
|
||||
"type": "UnityEngine.Rendering.VolumeProfile",
|
||||
"defaultInstantiationMode": 0
|
||||
},
|
||||
{
|
||||
"userAdded": false,
|
||||
"type": "UnityEditor.SceneAsset",
|
||||
"defaultInstantiationMode": 1
|
||||
},
|
||||
{
|
||||
"userAdded": false,
|
||||
"type": "UnityEngine.Shader",
|
||||
"defaultInstantiationMode": 1
|
||||
},
|
||||
{
|
||||
"userAdded": false,
|
||||
"type": "UnityEngine.ShaderVariantCollection",
|
||||
"defaultInstantiationMode": 1
|
||||
},
|
||||
{
|
||||
"userAdded": false,
|
||||
"type": "UnityEngine.Texture",
|
||||
"defaultInstantiationMode": 0
|
||||
},
|
||||
{
|
||||
"userAdded": false,
|
||||
"type": "UnityEngine.Texture2D",
|
||||
"defaultInstantiationMode": 0
|
||||
},
|
||||
{
|
||||
"userAdded": false,
|
||||
"type": "UnityEngine.Timeline.TimelineAsset",
|
||||
"defaultInstantiationMode": 0
|
||||
}
|
||||
],
|
||||
"defaultDependencyTypeInfo": {
|
||||
"userAdded": false,
|
||||
"type": "<default_scene_template_dependencies>",
|
||||
"defaultInstantiationMode": 1
|
||||
},
|
||||
"newSceneOverride": 0
|
||||
}
|
Reference in New Issue
Block a user