Trailer Stuff & More
Changed title font to Montserrat Added trailer-specific camera transitions Added key to hide UI Fixed input listening while console is open Added animated zone reveal effect in galaxy map Added Ping action for sensors Added debug console commands (e.g. give command to get any item in legendary+ quality) Temporarily disabled wwise Fixed infinite loop in weapon penetration code Guided missiles now predict target position Fixed hitscan weapons Fixed invisible enemies bug Fixed various loadout generator issues (can now generate turrets!) Fixed wormhole crash when enemy is targeted Saving/loading current zone time when exiting game (planets keep their positions) Created slime simulation in test scene - WIP
This commit is contained in:
parent
64a8589b7f
commit
11a9365f91
108 changed files with 10049 additions and 856 deletions
|
|
@ -30,8 +30,8 @@
|
|||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Triggers\Default Work Unit.wwu" DateLow="1614440366" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Switches\Default Work Unit.wwu" DateLow="1615759138" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\States\Default Work Unit.wwu" DateLow="1614440366" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Soundcaster Sessions\Default Work Unit.wwu" DateLow="1614440366" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\SoundBanks\Default Work Unit.wwu" DateLow="1615911545" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Soundcaster Sessions\Default Work Unit.wwu" DateLow="1616360818" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\SoundBanks\Default Work Unit.wwu" DateLow="1616360818" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Queries\Factory Queries.wwu" DateLow="1614439251" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Queries\Default Work Unit.wwu" DateLow="1614440366" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Presets\Factory Spatial Audio.wwu" DateLow="1614439251" DateHigh="0"/>
|
||||
|
|
@ -40,12 +40,14 @@
|
|||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Mixing Sessions\Default Work Unit.wwu" DateLow="1614440366" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Master-Mixer Hierarchy\Default Work Unit.wwu" DateLow="1615918589" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Interactive Music Hierarchy\Default Work Unit.wwu" DateLow="1614440366" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Game Parameters\weapon_events.wwu" DateLow="1616360818" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Game Parameters\test_paramenters.wwu" DateLow="1615582814" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Game Parameters\item_properties.wwu" DateLow="1615908789" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Game Parameters\Default Work Unit.wwu" DateLow="1614440366" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Events\test_sounds.wwu" DateLow="1615582814" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Events\Ship Audio.wwu" DateLow="1615911751" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Events\Default Work Unit.wwu" DateLow="1615909571" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Events\Ship Audio.wwu" DateLow="1616360818" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Events\SFX_Defirm_unit.wwu" DateLow="1616360818" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Events\Default Work Unit.wwu" DateLow="1616360818" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Effects\Factory Effects.wwu" DateLow="1614439251" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Effects\Default Work Unit.wwu" DateLow="1615582814" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Dynamic Dialogue\Default Work Unit.wwu" DateLow="1614440366" DateHigh="0"/>
|
||||
|
|
@ -54,8 +56,9 @@
|
|||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Control Surface Sessions\Default Work Unit.wwu" DateLow="1614449286" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Audio Devices\Default Work Unit.wwu" DateLow="1614440366" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Attenuations\Default Work Unit.wwu" DateLow="1615918589" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Aetheria-Economy_WwiseProject.wproj" DateLow="1615891381" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Aetheria-Economy_WwiseProject.wproj" DateLow="1616529039" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Aetheria-Economy_WwiseProject.rwvens.wsettings" DateLow="1615983944" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Actor-Mixer Hierarchy\Default Work Unit.wwu" DateLow="1615918589" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Actor-Mixer Hierarchy\SFX_Defirm_Unit.wwu" DateLow="1616360818" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Actor-Mixer Hierarchy\Default Work Unit.wwu" DateLow="1616360818" DateHigh="0"/>
|
||||
<ValidationCacheItem File="E:\Projects\Aetheria-Economy\Aetheria-Economy_WwiseProject\Actor-Mixer Hierarchy\copy_Unit.wwu" DateLow="1615582814" DateHigh="0"/>
|
||||
</ValidationCache>
|
||||
|
|
|
|||
|
|
@ -25,7 +25,34 @@
|
|||
<Value Platform="Windows">GeneratedSoundBanks\Windows\</Value>
|
||||
</ValueList>
|
||||
</Property>
|
||||
<Property Name="LicenseKey" Type="string" Value="PHByb2plY3QgaWQ9IjEwMTg3IiBtYXNrPSJBWUpMMjY3MSIgZW5jPSIwIj48bGlj ZW5zZSBpZD0iNDEiIG5hbWU9Ild3aXNlIChMaW1pdGVkIENvbW1lcmNpYWwgTGlj ZW5zZSkgKExpbWl0ZWQgdG8gNTAwIGFzc2V0cykiIHR5cGU9IjIiIHBsYXRmb3Jt cz0iNCwxMCwxMywxNCIgZXhwaXJlcz0iMjAyMi0wNC0wMSIgYXNzZXRzPSI1MDAi IC8+PGxpY2Vuc2UgaWQ9IjMxIiBuYW1lPSJTb3VuZFNlZWQgQWlyIiB0eXBlPSIx IiBwbGF0Zm9ybXM9IjQsMTAsMTQiIGV4cGlyZXM9IjIwMjEtMDUtMTUiICAvPjxs aWNlbnNlIGlkPSI1NCIgbmFtZT0iU291bmRTZWVkIEdyYWluIiB0eXBlPSIxIiBw bGF0Zm9ybXM9IjQsMTAsMTQiIGV4cGlyZXM9IjIwMjEtMDUtMTUiICAvPjxsaWNl bnNlIGlkPSIxMSIgbmFtZT0iaVpvdG9wZSBUcmFzaCBGaWx0ZXJzIiB0eXBlPSIx IiBwbGF0Zm9ybXM9IjQsMTAsMTQiIGV4cGlyZXM9IjIwMjEtMDUtMTUiICAvPjxs aWNlbnNlIGlkPSIxMiIgbmFtZT0iaVpvdG9wZSBUcmFzaCBNdWx0aS1iYW5kIERp c3RvcnRpb25zIiB0eXBlPSIxIiBwbGF0Zm9ybXM9IjQsMTAsMTQiIGV4cGlyZXM9 IjIwMjEtMDUtMTUiICAvPjxsaWNlbnNlIGlkPSIxMyIgbmFtZT0iaVpvdG9wZSBU cmFzaCBTaW5nbGUtYmFuZCBEaXN0b3J0aW9ucyIgdHlwZT0iMSIgcGxhdGZvcm1z PSI0LDEwLDE0IiBleHBpcmVzPSIyMDIxLTA1LTE1IiAgLz48bGljZW5zZSBpZD0i MTQiIG5hbWU9Imlab3RvcGUgVHJhc2ggQm94IE1vZGVscyIgdHlwZT0iMSIgcGxh dGZvcm1zPSI0LDEwLDE0IiBleHBpcmVzPSIyMDIxLTA1LTE1IiAgLz48bGljZW5z ZSBpZD0iMTUiIG5hbWU9Imlab3RvcGUgVHJhc2ggRHluYW1pY3MgKyBEZWxheSBC dW5kbGUiIHR5cGU9IjEiIHBsYXRmb3Jtcz0iNCwxMCwxNCIgZXhwaXJlcz0iMjAy MS0wNS0xNSIgIC8+PGxpY2Vuc2UgaWQ9IjE2IiBuYW1lPSJpWm90b3BlIEh5YnJp ZCBSZXZlcmIiIHR5cGU9IjEiIHBsYXRmb3Jtcz0iNCwxMCwxNCIgZXhwaXJlcz0i MjAyMS0wNS0xNSIgIC8+PC9wcm9qZWN0Pg==|uK+KeV3xm5FqPasDb4SxTSeO2zN XRZ60T5H105xAhHDZlAbco5jIPQxF1GECbZD19cvHJL38+9hFCxzLtvYhSX5zCEf bXML0PKaOhjOaexaJIb1hbmzssRLQiYQYPWGUqM8aYLYV50miOJFFttUYzHFRBXF lcWO85YivEt8vBmfAhXnWxPYquDlVKyb8JnuuZ53rRvVMOznF6+cjHCL1Puqer3M NwY9mvzqtU8dSxuo2DvaXKDPbTrE4PkjkryePUZjR1PfS/2sqcV97y4gFsU+qUwx 3DCFXPlSP6FQa8t4xiNRVcWDmXQW38WvPNW+c1yTEByvIzAbNS1TGveF0yg== "/>
|
||||
<Property Name="LicenseKey" Type="string" Value="PHByb2plY3QgaWQ9IjEwMTg3IiBtYXNrPSJBWUpMMjY3MSIgZW5jPSIwIj48bGlj
|
||||
ZW5zZSBpZD0iNDEiIG5hbWU9Ild3aXNlIChMaW1pdGVkIENvbW1lcmNpYWwgTGlj
|
||||
ZW5zZSkgKExpbWl0ZWQgdG8gNTAwIGFzc2V0cykiIHR5cGU9IjIiIHBsYXRmb3Jt
|
||||
cz0iNCwxMCwxMywxNCIgZXhwaXJlcz0iMjAyMi0wNC0wMSIgYXNzZXRzPSI1MDAi
|
||||
IC8+PGxpY2Vuc2UgaWQ9IjMxIiBuYW1lPSJTb3VuZFNlZWQgQWlyIiB0eXBlPSIx
|
||||
IiBwbGF0Zm9ybXM9IjQsMTAsMTQiIGV4cGlyZXM9IjIwMjEtMDUtMTUiICAvPjxs
|
||||
aWNlbnNlIGlkPSI1NCIgbmFtZT0iU291bmRTZWVkIEdyYWluIiB0eXBlPSIxIiBw
|
||||
bGF0Zm9ybXM9IjQsMTAsMTQiIGV4cGlyZXM9IjIwMjEtMDUtMTUiICAvPjxsaWNl
|
||||
bnNlIGlkPSIxMSIgbmFtZT0iaVpvdG9wZSBUcmFzaCBGaWx0ZXJzIiB0eXBlPSIx
|
||||
IiBwbGF0Zm9ybXM9IjQsMTAsMTQiIGV4cGlyZXM9IjIwMjEtMDUtMTUiICAvPjxs
|
||||
aWNlbnNlIGlkPSIxMiIgbmFtZT0iaVpvdG9wZSBUcmFzaCBNdWx0aS1iYW5kIERp
|
||||
c3RvcnRpb25zIiB0eXBlPSIxIiBwbGF0Zm9ybXM9IjQsMTAsMTQiIGV4cGlyZXM9
|
||||
IjIwMjEtMDUtMTUiICAvPjxsaWNlbnNlIGlkPSIxMyIgbmFtZT0iaVpvdG9wZSBU
|
||||
cmFzaCBTaW5nbGUtYmFuZCBEaXN0b3J0aW9ucyIgdHlwZT0iMSIgcGxhdGZvcm1z
|
||||
PSI0LDEwLDE0IiBleHBpcmVzPSIyMDIxLTA1LTE1IiAgLz48bGljZW5zZSBpZD0i
|
||||
MTQiIG5hbWU9Imlab3RvcGUgVHJhc2ggQm94IE1vZGVscyIgdHlwZT0iMSIgcGxh
|
||||
dGZvcm1zPSI0LDEwLDE0IiBleHBpcmVzPSIyMDIxLTA1LTE1IiAgLz48bGljZW5z
|
||||
ZSBpZD0iMTUiIG5hbWU9Imlab3RvcGUgVHJhc2ggRHluYW1pY3MgKyBEZWxheSBC
|
||||
dW5kbGUiIHR5cGU9IjEiIHBsYXRmb3Jtcz0iNCwxMCwxNCIgZXhwaXJlcz0iMjAy
|
||||
MS0wNS0xNSIgIC8+PGxpY2Vuc2UgaWQ9IjE2IiBuYW1lPSJpWm90b3BlIEh5YnJp
|
||||
ZCBSZXZlcmIiIHR5cGU9IjEiIHBsYXRmb3Jtcz0iNCwxMCwxNCIgZXhwaXJlcz0i
|
||||
MjAyMS0wNS0xNSIgIC8+PC9wcm9qZWN0Pg==|uK+KeV3xm5FqPasDb4SxTSeO2zN
|
||||
XRZ60T5H105xAhHDZlAbco5jIPQxF1GECbZD19cvHJL38+9hFCxzLtvYhSX5zCEf
|
||||
bXML0PKaOhjOaexaJIb1hbmzssRLQiYQYPWGUqM8aYLYV50miOJFFttUYzHFRBXF
|
||||
lcWO85YivEt8vBmfAhXnWxPYquDlVKyb8JnuuZ53rRvVMOznF6+cjHCL1Puqer3M
|
||||
NwY9mvzqtU8dSxuo2DvaXKDPbTrE4PkjkryePUZjR1PfS/2sqcV97y4gFsU+qUwx
|
||||
3DCFXPlSP6FQa8t4xiNRVcWDmXQW38WvPNW+c1yTEByvIzAbNS1TGveF0yg==
|
||||
"/>
|
||||
<Property Name="SoundBankGenerateEstimatedDuration" Type="bool" Value="True"/>
|
||||
<Property Name="SoundBankGenerateHeaderFile" Type="bool" Value="True"/>
|
||||
<Property Name="SoundBankGenerateMaxAttenuationInfo" Type="bool" Value="True"/>
|
||||
|
|
|
|||
BIN
Assets/Fonts/Ubuntu/Montserrat-Thin SDF.asset
(Stored with Git LFS)
Normal file
BIN
Assets/Fonts/Ubuntu/Montserrat-Thin SDF.asset
(Stored with Git LFS)
Normal file
Binary file not shown.
8
Assets/Fonts/Ubuntu/Montserrat-Thin SDF.asset.meta
Normal file
8
Assets/Fonts/Ubuntu/Montserrat-Thin SDF.asset.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1c5e8a01819db8d4b812bf3d3eecd389
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Fonts/Ubuntu/Montserrat-Thin.ttf
(Stored with Git LFS)
Normal file
BIN
Assets/Fonts/Ubuntu/Montserrat-Thin.ttf
(Stored with Git LFS)
Normal file
Binary file not shown.
21
Assets/Fonts/Ubuntu/Montserrat-Thin.ttf.meta
Normal file
21
Assets/Fonts/Ubuntu/Montserrat-Thin.ttf.meta
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 39baae53551530c46a09203705373952
|
||||
TrueTypeFontImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 4
|
||||
fontSize: 16
|
||||
forceTextureCase: -2
|
||||
characterSpacing: 0
|
||||
characterPadding: 1
|
||||
includeFontData: 1
|
||||
fontNames:
|
||||
- Montserrat
|
||||
fallbackFontReferences: []
|
||||
customCharacters:
|
||||
fontRenderingMode: 0
|
||||
ascentCalculationMode: 1
|
||||
useLegacyBoundsCalculation: 0
|
||||
shouldRoundAdvanceValue: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
80
Assets/Materials/Brushes/Sector Boundary Test.mat
Normal file
80
Assets/Materials/Brushes/Sector Boundary Test.mat
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Sector Boundary Test
|
||||
m_Shader: {fileID: 4800000, guid: 268da230635cfb34ab4ed6ad39503fa0, type: 3}
|
||||
m_ShaderKeywords:
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _Depth: 150
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.5
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _Power: 0.25
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
8
Assets/Materials/Brushes/Sector Boundary Test.mat.meta
Normal file
8
Assets/Materials/Brushes/Sector Boundary Test.mat.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 65e5206f4614c85449f822f5bab55199
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
83
Assets/Materials/Brushes/Sector Tint Test.mat
Normal file
83
Assets/Materials/Brushes/Sector Tint Test.mat
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Sector Tint Test
|
||||
m_Shader: {fileID: 4800000, guid: 268da230635cfb34ab4ed6ad39503fa0, type: 3}
|
||||
m_ShaderKeywords:
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _Depth: 0.25
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _Frequency: 6.2832
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.5
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _Phase: 0
|
||||
- _Power: 0.5
|
||||
- _SinePower: 1.25
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 0.3726415, g: 0.70283014, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
8
Assets/Materials/Brushes/Sector Tint Test.mat.meta
Normal file
8
Assets/Materials/Brushes/Sector Tint Test.mat.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7b4b425f2959c6444b35fca367641ee2
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
65
Assets/Materials/Fog Marching Test.mat
Normal file
65
Assets/Materials/Fog Marching Test.mat
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Fog Marching Test
|
||||
m_Shader: {fileID: 4800000, guid: 7a890b6ceccf53c44bfc54b18b5daa58, type: 3}
|
||||
m_ShaderKeywords:
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _Displacement:
|
||||
m_Texture: {fileID: 8400000, guid: 06ec5ef8a5830fc44b1ac1a6e123add5, type: 2}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Patch:
|
||||
m_Texture: {fileID: 8400000, guid: c618a6b20b3c7394590c59a9fa467e86, type: 2}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Surface:
|
||||
m_Texture: {fileID: 8400000, guid: 2fc21a9d3e9647948b56e384cd9378b3, type: 2}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _TintTexture:
|
||||
m_Texture: {fileID: 8400000, guid: d196505464047f04a97f28689041209b, type: 2}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- _AlphaFloor: 0
|
||||
- _DepthBlend: 512
|
||||
- _DepthCeiling: 4096
|
||||
- _Gamma: 0.66
|
||||
- _GridCeilingBlend: -300
|
||||
- _GridCeilingDensity: 0.01
|
||||
- _GridCeilingFollow: 0
|
||||
- _GridCeilingOffset: 0
|
||||
- _GridFillDensity: 0
|
||||
- _GridFloorBlend: 93.3
|
||||
- _GridFloorDensity: 4
|
||||
- _GridFloorOffset: 25
|
||||
- _GridPatchBlend: 22.7
|
||||
- _GridPatchDensity: 0.1
|
||||
- _NoiseFrequency: 0.01
|
||||
- _NoiseSpeed: 0.02
|
||||
- _NoiseStrength: 75
|
||||
- _SafetyDistance: 50
|
||||
- _StepExponent: 2
|
||||
- _TintExponent: 8
|
||||
m_Colors:
|
||||
- _Tint: {r: 2.0078435, g: 2.0078435, b: 2.0078435, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
8
Assets/Materials/Fog Marching Test.mat.meta
Normal file
8
Assets/Materials/Fog Marching Test.mat.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ad63650ae6d6cc542a5aad16694b3c46
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -28,7 +28,7 @@ Material:
|
|||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ColorRamp:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Texture: {fileID: 2800000, guid: 4f6a7385479a85a40be0c3030504c7c5, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
|
|
@ -104,8 +104,8 @@ Material:
|
|||
- _OffsetFadePower: -0.75
|
||||
- _Parallax: 0.02
|
||||
- _RayStepSize: -0.00625
|
||||
- _SecondOffsetDepthExponent: 0
|
||||
- _SecondOffsetDistance: -0.2
|
||||
- _SecondOffsetDepthExponent: -2
|
||||
- _SecondOffsetDistance: -0.05
|
||||
- _SecondOffsetFadePower: -8
|
||||
- _SecondOffsetRotationFadePower: 0.25
|
||||
- _SmoothnessTextureChannel: 0
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ Material:
|
|||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _Scale: 1.33001
|
||||
- _Scale: 5.603361
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
|
|
|
|||
|
|
@ -404,10 +404,10 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 3c2eb8fe081f14940a7208cbdc3d97f9, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
SpeedMultiplier: 0.0025
|
||||
SpeedMultiplier: 0.005
|
||||
FirstOffsetDomainRotationSpeed: 5
|
||||
FirstOffsetRotationSpeed: 0
|
||||
FirstOffsetRotationSpeed: 20
|
||||
SecondOffsetDomainRotationSpeed: 10
|
||||
SecondOffsetRotationSpeed: -25
|
||||
AlbedoRotationSpeed: -3
|
||||
SecondOffsetRotationSpeed: -50
|
||||
AlbedoRotationSpeed: 15
|
||||
LightingDirection: {x: 1, y: 0, z: 1}
|
||||
|
|
|
|||
118
Assets/Prefabs/RPG/Slime Renderer.prefab
Normal file
118
Assets/Prefabs/RPG/Slime Renderer.prefab
Normal file
|
|
@ -0,0 +1,118 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &6977256487485077368
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 6977256487485077373}
|
||||
- component: {fileID: 6977256487485077374}
|
||||
- component: {fileID: 6977256487485077375}
|
||||
- component: {fileID: 5262902644310250487}
|
||||
m_Layer: 0
|
||||
m_Name: Slime Renderer
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &6977256487485077373
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6977256487485077368}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!33 &6977256487485077374
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6977256487485077368}
|
||||
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!23 &6977256487485077375
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6977256487485077368}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 2
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 817815ac1f000054ab738bb243cd7dba, type: 2}
|
||||
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!114 &5262902644310250487
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6977256487485077368}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8ffec49d55e3429418714ceb048bfeae, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
TargetCamera: {fileID: 0}
|
||||
GravityCamera: {fileID: 0}
|
||||
SlimeCompute: {fileID: 7200000, guid: 33eea2339ec4dc143b0e192a0b7f0a33, type: 3}
|
||||
AccumulationMaterial: {fileID: 2100000, guid: 817815ac1f000054ab738bb243cd7dba,
|
||||
type: 2}
|
||||
ParticleMaterial: {fileID: 0}
|
||||
GravityTexture: {fileID: 0}
|
||||
TextureSize: 2048
|
||||
ZoneRadius: 512
|
||||
AgentCount: 1048576
|
||||
ParticleCount: 65536
|
||||
SlimeSettings:
|
||||
Deposition: 1
|
||||
Diffusion: 0.5
|
||||
Decay: 1
|
||||
TurnSpeed: 12
|
||||
RandomSteering: 1
|
||||
Speed: 25
|
||||
Drive: 16
|
||||
SensorDistance: 8
|
||||
SensorSpread: 0.64
|
||||
SensorSize: 1
|
||||
7
Assets/Prefabs/RPG/Slime Renderer.prefab.meta
Normal file
7
Assets/Prefabs/RPG/Slime Renderer.prefab.meta
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: efd1f097ce29ffa48bb0045d6502f55d
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -188,6 +188,14 @@
|
|||
"expectedControlType": "Button",
|
||||
"processors": "",
|
||||
"interactions": ""
|
||||
},
|
||||
{
|
||||
"name": "Hide UI",
|
||||
"type": "Button",
|
||||
"id": "1cdb2515-91e1-4895-879d-8a7347e60b21",
|
||||
"expectedControlType": "Button",
|
||||
"processors": "",
|
||||
"interactions": ""
|
||||
}
|
||||
],
|
||||
"bindings": [
|
||||
|
|
@ -630,6 +638,17 @@
|
|||
"action": "Ping",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"id": "3f898572-d165-4e29-93c3-95c3efce5df9",
|
||||
"path": "<Keyboard>/f2",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "Keyboard&Mouse",
|
||||
"action": "Hide UI",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
|
|
@ -35,9 +35,9 @@ TextureImporter:
|
|||
filterMode: 0
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
|
|
@ -55,6 +55,8 @@ TextureImporter:
|
|||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
|
|
|
|||
8
Assets/Resources/Prefabs/Weapons/AU.meta
Normal file
8
Assets/Resources/Prefabs/Weapons/AU.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8f9cbfd6f56feab4b9a92aaef70203db
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
320
Assets/Resources/Prefabs/Weapons/AU/Earp.prefab
Normal file
320
Assets/Resources/Prefabs/Weapons/AU/Earp.prefab
Normal file
|
|
@ -0,0 +1,320 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &1038711833328602429
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 7093708978518643867}
|
||||
- component: {fileID: 4746410263980518329}
|
||||
- component: {fileID: 277178765566372861}
|
||||
- component: {fileID: 654273117314929370}
|
||||
m_Layer: 0
|
||||
m_Name: Bullet
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &7093708978518643867
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1038711833328602429}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 7887646903913370668}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &4746410263980518329
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1038711833328602429}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 1281fe44325f9b548aa42dc331b17266, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!96 &277178765566372861
|
||||
TrailRenderer:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1038711833328602429}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 0
|
||||
m_ReflectionProbeUsage: 0
|
||||
m_RayTracingMode: 0
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 9c20b9ccbbbb1b14cb5729e0c8460cd9, type: 2}
|
||||
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_Time: 0.1
|
||||
m_Parameters:
|
||||
serializedVersion: 3
|
||||
widthMultiplier: 1
|
||||
widthCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: -1
|
||||
tangentMode: 69
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 0
|
||||
inSlope: -1
|
||||
outSlope: 0
|
||||
tangentMode: 69
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
colorGradient:
|
||||
serializedVersion: 2
|
||||
key0: {r: 1, g: 0.99469995, b: 0.45098042, a: 1}
|
||||
key1: {r: 1, g: 0.3910084, b: 0.049000025, a: 1}
|
||||
key2: {r: 0, g: 0, b: 0, a: 0}
|
||||
key3: {r: 0, g: 0, b: 0, a: 0}
|
||||
key4: {r: 0, g: 0, b: 0, a: 0}
|
||||
key5: {r: 0, g: 0, b: 0, a: 0}
|
||||
key6: {r: 0, g: 0, b: 0, a: 0}
|
||||
key7: {r: 0, g: 0, b: 0, a: 0}
|
||||
ctime0: 0
|
||||
ctime1: 31804
|
||||
ctime2: 65535
|
||||
ctime3: 65535
|
||||
ctime4: 0
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 65535
|
||||
atime2: 0
|
||||
atime3: 0
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 3
|
||||
m_NumAlphaKeys: 2
|
||||
numCornerVertices: 0
|
||||
numCapVertices: 0
|
||||
alignment: 0
|
||||
textureMode: 0
|
||||
shadowBias: 0.5
|
||||
generateLightingData: 0
|
||||
m_MinVertexDistance: 1
|
||||
m_Autodestruct: 0
|
||||
m_Emitting: 1
|
||||
--- !u!114 &654273117314929370
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1038711833328602429}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4528540a139424748a7b6c47bfecc7fd, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
Trail: {fileID: 277178765566372861}
|
||||
Gravity: 1
|
||||
HitEffect: {fileID: 3196731101172068069}
|
||||
--- !u!1 &6642079567538326943
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 7887646903913370668}
|
||||
- component: {fileID: 4191762351494344457}
|
||||
m_Layer: 0
|
||||
m_Name: Bullet Manager
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &7887646903913370668
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6642079567538326943}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 7093708978518643867}
|
||||
- {fileID: 6081895055445446888}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &4191762351494344457
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6642079567538326943}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 49c173e3c2313ca4d9d04d0d87ec0f06, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
ProjectilePrototype: {fileID: 4746410263980518329}
|
||||
--- !u!1001 &6082388488576249182
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 7887646903913370668}
|
||||
m_Modifications:
|
||||
- target: {fileID: 1337198075554910, guid: 25c7aa9ad705fe143a4d71c1c8deb7d4, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: TinyExplosion
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4441266138185142, guid: 25c7aa9ad705fe143a4d71c1c8deb7d4, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4441266138185142, guid: 25c7aa9ad705fe143a4d71c1c8deb7d4, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -4.2346153
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4441266138185142, guid: 25c7aa9ad705fe143a4d71c1c8deb7d4, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 2.42
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4441266138185142, guid: 25c7aa9ad705fe143a4d71c1c8deb7d4, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -21.91896
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4441266138185142, guid: 25c7aa9ad705fe143a4d71c1c8deb7d4, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 0.7071068
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4441266138185142, guid: 25c7aa9ad705fe143a4d71c1c8deb7d4, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: -0.7071068
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4441266138185142, guid: 25c7aa9ad705fe143a4d71c1c8deb7d4, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4441266138185142, guid: 25c7aa9ad705fe143a4d71c1c8deb7d4, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4441266138185142, guid: 25c7aa9ad705fe143a4d71c1c8deb7d4, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: -90
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4441266138185142, guid: 25c7aa9ad705fe143a4d71c1c8deb7d4, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4441266138185142, guid: 25c7aa9ad705fe143a4d71c1c8deb7d4, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 198175801688348628, guid: 25c7aa9ad705fe143a4d71c1c8deb7d4,
|
||||
type: 3}
|
||||
propertyPath: looping
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 198175801688348628, guid: 25c7aa9ad705fe143a4d71c1c8deb7d4,
|
||||
type: 3}
|
||||
propertyPath: prewarm
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 198814760465859298, guid: 25c7aa9ad705fe143a4d71c1c8deb7d4,
|
||||
type: 3}
|
||||
propertyPath: looping
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 198814760465859298, guid: 25c7aa9ad705fe143a4d71c1c8deb7d4,
|
||||
type: 3}
|
||||
propertyPath: prewarm
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 198942329355805636, guid: 25c7aa9ad705fe143a4d71c1c8deb7d4,
|
||||
type: 3}
|
||||
propertyPath: looping
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 198942329355805636, guid: 25c7aa9ad705fe143a4d71c1c8deb7d4,
|
||||
type: 3}
|
||||
propertyPath: prewarm
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 25c7aa9ad705fe143a4d71c1c8deb7d4, type: 3}
|
||||
--- !u!4 &6081895055445446888 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 4441266138185142, guid: 25c7aa9ad705fe143a4d71c1c8deb7d4,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 6082388488576249182}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &3196731101172068069 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 8662091027736085435, guid: 25c7aa9ad705fe143a4d71c1c8deb7d4,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 6082388488576249182}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 1281fe44325f9b548aa42dc331b17266, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
7
Assets/Resources/Prefabs/Weapons/AU/Earp.prefab.meta
Normal file
7
Assets/Resources/Prefabs/Weapons/AU/Earp.prefab.meta
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1cc2308a1f24cc043aafc00a3788f3ca
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
5159
Assets/Resources/Prefabs/Weapons/AU/Leonid.prefab
Normal file
5159
Assets/Resources/Prefabs/Weapons/AU/Leonid.prefab
Normal file
File diff suppressed because it is too large
Load diff
7
Assets/Resources/Prefabs/Weapons/AU/Leonid.prefab.meta
Normal file
7
Assets/Resources/Prefabs/Weapons/AU/Leonid.prefab.meta
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ce69da110ba4dab45b90d4c9c9b0f5b5
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Resources/Settings.asset
(Stored with Git LFS)
BIN
Assets/Resources/Settings.asset
(Stored with Git LFS)
Binary file not shown.
38
Assets/Resources/Slime Gravity.renderTexture
Normal file
38
Assets/Resources/Slime Gravity.renderTexture
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!84 &8400000
|
||||
RenderTexture:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Slime Gravity
|
||||
m_ImageContentsHash:
|
||||
serializedVersion: 2
|
||||
Hash: 00000000000000000000000000000000
|
||||
m_ForcedFallbackFormat: 4
|
||||
m_DownscaleFallback: 0
|
||||
m_IsAlphaChannelOptional: 0
|
||||
serializedVersion: 3
|
||||
m_Width: 1024
|
||||
m_Height: 1024
|
||||
m_AntiAliasing: 1
|
||||
m_MipCount: -1
|
||||
m_DepthFormat: 0
|
||||
m_ColorFormat: 49
|
||||
m_MipMap: 0
|
||||
m_GenerateMips: 1
|
||||
m_SRGB: 0
|
||||
m_UseDynamicScale: 0
|
||||
m_BindMS: 0
|
||||
m_EnableCompatibleFormat: 1
|
||||
m_TextureSettings:
|
||||
serializedVersion: 2
|
||||
m_FilterMode: 1
|
||||
m_Aniso: 0
|
||||
m_MipBias: 0
|
||||
m_WrapU: 1
|
||||
m_WrapV: 1
|
||||
m_WrapW: 1
|
||||
m_Dimension: 2
|
||||
m_VolumeDepth: 1
|
||||
8
Assets/Resources/Slime Gravity.renderTexture.meta
Normal file
8
Assets/Resources/Slime Gravity.renderTexture.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: cc403ed0b6a104445b6534b1877c5556
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1890,7 +1890,7 @@ RectTransform:
|
|||
- {fileID: 1868140981}
|
||||
- {fileID: 1080776604}
|
||||
m_Father: {fileID: 761574181}
|
||||
m_RootOrder: 8
|
||||
m_RootOrder: 7
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
|
|
@ -2231,7 +2231,7 @@ Transform:
|
|||
- {fileID: 488792361}
|
||||
- {fileID: 970624070}
|
||||
m_Father: {fileID: 1665127616}
|
||||
m_RootOrder: 4
|
||||
m_RootOrder: 6
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &200920995
|
||||
GameObject:
|
||||
|
|
@ -3011,8 +3011,6 @@ GameObject:
|
|||
- component: {fileID: 225222197}
|
||||
- component: {fileID: 225222202}
|
||||
- component: {fileID: 225222201}
|
||||
- component: {fileID: 225222200}
|
||||
- component: {fileID: 225222199}
|
||||
- component: {fileID: 225222198}
|
||||
m_Layer: 0
|
||||
m_Name: Sector Camera
|
||||
|
|
@ -3033,7 +3031,7 @@ Transform:
|
|||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1665127616}
|
||||
m_RootOrder: 6
|
||||
m_RootOrder: 8
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &225222198
|
||||
MonoBehaviour:
|
||||
|
|
@ -3050,42 +3048,6 @@ MonoBehaviour:
|
|||
_shader: {fileID: 4800000, guid: 2d020ca820b3647479e78b8c3d26e3a6, type: 3}
|
||||
_downSampleMode: 2
|
||||
_iteration: 4
|
||||
--- !u!114 &225222199
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 225222196}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4ae335524e949404bb57f1612ec4b9b5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
isDefaultListener: 1
|
||||
listenerId: 0
|
||||
--- !u!114 &225222200
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 225222196}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f27db6b94e477054e96392f94dc50c9d, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_listeners:
|
||||
initialListenerList: []
|
||||
useDefaultListeners: 1
|
||||
isEnvironmentAware: 0
|
||||
isStaticObject: 0
|
||||
m_positionOffsetData:
|
||||
KeepMe: 0
|
||||
positionOffset: {x: 0, y: 0, z: 0}
|
||||
m_posOffsetData: {fileID: 0}
|
||||
listenerMask: 1
|
||||
--- !u!114 &225222201
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -4545,6 +4507,7 @@ GameObject:
|
|||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 346000247}
|
||||
- component: {fileID: 346000248}
|
||||
m_Layer: 5
|
||||
m_Name: Gameplay
|
||||
m_TagString: Untagged
|
||||
|
|
@ -4577,13 +4540,25 @@ RectTransform:
|
|||
- {fileID: 146394775}
|
||||
- {fileID: 1787772780}
|
||||
m_Father: {fileID: 761574181}
|
||||
m_RootOrder: 3
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!225 &346000248
|
||||
CanvasGroup:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 346000246}
|
||||
m_Enabled: 1
|
||||
m_Alpha: 1
|
||||
m_Interactable: 1
|
||||
m_BlocksRaycasts: 1
|
||||
m_IgnoreParentGroups: 0
|
||||
--- !u!114 &346333149 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 1713457305180270767, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
|
|
@ -4716,7 +4691,7 @@ MonoBehaviour:
|
|||
m_PivotOffset: {x: 0, y: 0, z: 0}
|
||||
m_AmplitudeGain: 0.25
|
||||
m_FrequencyGain: 0.5
|
||||
mNoiseOffsets: {x: 0, y: 0, z: 0}
|
||||
mNoiseOffsets: {x: 191.71204, y: -207.06473, z: 153.18213}
|
||||
--- !u!114 &359038943
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 3
|
||||
|
|
@ -4893,7 +4868,7 @@ Transform:
|
|||
m_Children:
|
||||
- {fileID: 359038939}
|
||||
m_Father: {fileID: 1665127616}
|
||||
m_RootOrder: 1
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &393266593
|
||||
MonoBehaviour:
|
||||
|
|
@ -7163,7 +7138,7 @@ RectTransform:
|
|||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 761574181}
|
||||
m_RootOrder: 9
|
||||
m_RootOrder: 8
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
|
|
@ -8327,6 +8302,95 @@ MeshFilter:
|
|||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 542243545}
|
||||
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!1 &543699678
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 3
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 543699679}
|
||||
- component: {fileID: 543699683}
|
||||
- component: {fileID: 543699682}
|
||||
- component: {fileID: 543699681}
|
||||
- component: {fileID: 543699680}
|
||||
m_Layer: 0
|
||||
m_Name: cm
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &543699679
|
||||
Transform:
|
||||
m_ObjectHideFlags: 3
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 543699678}
|
||||
m_LocalRotation: {x: -0.2677866, y: 0.37796336, z: -0.115197934, w: 0.87872833}
|
||||
m_LocalPosition: {x: 0.27700424, y: 0.74153686, z: 4.1357794}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1644480538}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &543699680
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 3
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 543699678}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: a4c41ac9245b87c4192012080077d830, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Damping: 0
|
||||
--- !u!114 &543699681
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 3
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 543699678}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 36d1163fa822e8b418a0a603ec078d5c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Damping: 0
|
||||
--- !u!114 &543699682
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 3
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 543699678}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 68bb026fafb42b14791938953eaace77, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_NoiseProfile: {fileID: 11400000, guid: 46965f9cbaf525742a6da4c2172a99cd, type: 2}
|
||||
m_PivotOffset: {x: 0, y: 0, z: 0}
|
||||
m_AmplitudeGain: 0.25
|
||||
m_FrequencyGain: 0.5
|
||||
mNoiseOffsets: {x: 475.8005, y: 564.4719, z: 192.36002}
|
||||
--- !u!114 &543699683
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 3
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 543699678}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: ac0b09e7857660247b1477e93731de29, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &545103407
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -8984,7 +9048,7 @@ RectTransform:
|
|||
- {fileID: 738229276}
|
||||
- {fileID: 947321578}
|
||||
m_Father: {fileID: 761574181}
|
||||
m_RootOrder: 6
|
||||
m_RootOrder: 5
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
|
|
@ -11282,7 +11346,6 @@ RectTransform:
|
|||
m_Children:
|
||||
- {fileID: 1273980439}
|
||||
- {fileID: 411347519}
|
||||
- {fileID: 1723136546}
|
||||
- {fileID: 346000247}
|
||||
- {fileID: 1726632265}
|
||||
- {fileID: 1420548308}
|
||||
|
|
@ -11290,6 +11353,7 @@ RectTransform:
|
|||
- {fileID: 1157981992}
|
||||
- {fileID: 178733680}
|
||||
- {fileID: 472507698}
|
||||
- {fileID: 1723136546}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
|
|
@ -12281,7 +12345,7 @@ Transform:
|
|||
- {fileID: 1075335641}
|
||||
- {fileID: 166261017}
|
||||
m_Father: {fileID: 1665127616}
|
||||
m_RootOrder: 5
|
||||
m_RootOrder: 7
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &831892783
|
||||
GameObject:
|
||||
|
|
@ -12897,7 +12961,7 @@ Transform:
|
|||
m_Children:
|
||||
- {fileID: 1319157835}
|
||||
m_Father: {fileID: 1665127616}
|
||||
m_RootOrder: 0
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &906767441
|
||||
GameObject:
|
||||
|
|
@ -14695,7 +14759,7 @@ Transform:
|
|||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1665127616}
|
||||
m_RootOrder: 7
|
||||
m_RootOrder: 9
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!20 &1005979868
|
||||
Camera:
|
||||
|
|
@ -14800,14 +14864,11 @@ MonoBehaviour:
|
|||
Credits: 100000000
|
||||
TargetSpottedBlinkFrequency: 20
|
||||
TargetSpottedBlinkOffset: -0.25
|
||||
NameFile: {fileID: 4900000, guid: 8ba25d5d0ecee31408c7ce7460b4e015, type: 3}
|
||||
NameGeneratorMinLength: 5
|
||||
NameGeneratorMaxLength: 10
|
||||
NameGeneratorOrder: 4
|
||||
DeathPPTransitionTime: 3
|
||||
DeathPPTransitionTime: 1
|
||||
DeathPP: {fileID: 803284856}
|
||||
HeatstrokePP: {fileID: 1404901906}
|
||||
SevereHeatstrokePP: {fileID: 837424435}
|
||||
EffectManagerParent: {fileID: 134113271}
|
||||
TradeMenu: {fileID: 522642869}
|
||||
HostileTargetIndicator: {fileID: 1787772783}
|
||||
ViewDot: {fileID: 146394778}
|
||||
|
|
@ -14823,16 +14884,18 @@ MonoBehaviour:
|
|||
ZoneRenderer: {fileID: 1009503731}
|
||||
DockCamera: {fileID: 393266593}
|
||||
FollowCamera: {fileID: 887677622}
|
||||
GameplayUI: {fileID: 346000246}
|
||||
WormholeCamera: {fileID: 1644480539}
|
||||
GameplayUI: {fileID: 346000248}
|
||||
Menu: {fileID: 1726632268}
|
||||
MenuMap: {fileID: 630131162}
|
||||
SectorMap: {fileID: 0}
|
||||
SectorMap: {fileID: 2132980328}
|
||||
SchematicDisplay: {fileID: 7628189704109037584}
|
||||
TargetSchematicDisplay: {fileID: 410701129}
|
||||
Inventory: {fileID: 1997243495}
|
||||
ShipPanel: {fileID: 7628189704109037582}
|
||||
TargetShipPanel: {fileID: 410701133}
|
||||
Dialog: {fileID: 620555924}
|
||||
IntroDuration: 10
|
||||
--- !u!4 &1009503730
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -14862,7 +14925,6 @@ MonoBehaviour:
|
|||
WormholePrefab: {fileID: 463084220523011477, guid: 4a77c480b4bb2a148954bd57dfe91d0b,
|
||||
type: 3}
|
||||
EntityFadeTime: 3
|
||||
EffectManagerParent: {fileID: 134113271}
|
||||
FogCameraParent: {fileID: 1547889399}
|
||||
Settings: {fileID: 11400000, guid: cd2344e2001a37544aab0960c164d4ff, type: 2}
|
||||
ZoneRoot: {fileID: 2095699057}
|
||||
|
|
@ -14944,6 +15006,8 @@ MonoBehaviour:
|
|||
AsteroidSpritesheetWidth: 4
|
||||
AsteroidSpritesheetHeight: 4
|
||||
LODHandler: {fileID: 1009503736}
|
||||
SlimeRenderer: {fileID: 0}
|
||||
SlimeGravityCamera: {fileID: 0}
|
||||
Tour: 0
|
||||
TourSwitchTime: 10
|
||||
TourFollowDistance: 100
|
||||
|
|
@ -15736,6 +15800,80 @@ CanvasRenderer:
|
|||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1060591358}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!1 &1066823973
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1066823974}
|
||||
- component: {fileID: 1066823975}
|
||||
m_Layer: 0
|
||||
m_Name: Slime Gravity Renderer
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1066823974
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1066823973}
|
||||
m_LocalRotation: {x: 0.7071068, y: 0, z: 0, w: 0.7071068}
|
||||
m_LocalPosition: {x: 0, y: 10, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1665127616}
|
||||
m_RootOrder: 4
|
||||
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 0}
|
||||
--- !u!20 &1066823975
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1066823973}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 2
|
||||
m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_projectionMatrixMode: 1
|
||||
m_GateFitMode: 2
|
||||
m_FOVAxisMode: 0
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
m_FocalLength: 50
|
||||
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: 1
|
||||
orthographic size: 1000
|
||||
m_Depth: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 1536
|
||||
m_RenderingPath: 1
|
||||
m_TargetTexture: {fileID: 8400000, guid: cc403ed0b6a104445b6534b1877c5556, type: 2}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 1
|
||||
m_AllowMSAA: 0
|
||||
m_AllowDynamicResolution: 0
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 0
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
--- !u!1 &1075335640
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -16488,7 +16626,7 @@ RectTransform:
|
|||
- {fileID: 1505831357}
|
||||
- {fileID: 1741914910}
|
||||
m_Father: {fileID: 761574181}
|
||||
m_RootOrder: 7
|
||||
m_RootOrder: 6
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
|
|
@ -16911,6 +17049,168 @@ MonoBehaviour:
|
|||
m_FlexibleWidth: -1
|
||||
m_FlexibleHeight: -1
|
||||
m_LayoutPriority: 1
|
||||
--- !u!1001 &1175122070
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 2056162322}
|
||||
m_Modifications:
|
||||
- target: {fileID: 3462739465108434284, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Text Button
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434285, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434285, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_Pivot.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434285, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434285, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_AnchorMax.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434285, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434285, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_AnchorMin.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434285, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434285, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 128
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434285, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 32
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434285, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434285, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434285, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434285, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434285, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434285, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434285, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434285, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434285, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434285, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434285, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434285, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434287, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_text
|
||||
value: Preview Path
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434287, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_fontSize
|
||||
value: 18
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434287, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_fontSizeBase
|
||||
value: 18
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434287, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_VerticalAlignment
|
||||
value: 512
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3462739465108434287, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
propertyPath: m_HorizontalAlignment
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: c7113183a38d6f84b8ffe6fa7c342896, type: 3}
|
||||
--- !u!224 &1175122071 stripped
|
||||
RectTransform:
|
||||
m_CorrespondingSourceObject: {fileID: 3462739465108434285, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 1175122070}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &1175122072 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 3462739465108434286, guid: c7113183a38d6f84b8ffe6fa7c342896,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 1175122070}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!114 &1176624628 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 3501282941175030939, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
|
|
@ -17366,6 +17666,95 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 2da0c512f12947e489f739169773d7ca, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1001 &1254851253
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 6977256487485077368, guid: efd1f097ce29ffa48bb0045d6502f55d,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Slime Renderer
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6977256487485077368, guid: efd1f097ce29ffa48bb0045d6502f55d,
|
||||
type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 13
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6977256487485077373, guid: efd1f097ce29ffa48bb0045d6502f55d,
|
||||
type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 10
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6977256487485077373, guid: efd1f097ce29ffa48bb0045d6502f55d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6977256487485077373, guid: efd1f097ce29ffa48bb0045d6502f55d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.y
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6977256487485077373, guid: efd1f097ce29ffa48bb0045d6502f55d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.z
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6977256487485077373, guid: efd1f097ce29ffa48bb0045d6502f55d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6977256487485077373, guid: efd1f097ce29ffa48bb0045d6502f55d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6977256487485077373, guid: efd1f097ce29ffa48bb0045d6502f55d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6977256487485077373, guid: efd1f097ce29ffa48bb0045d6502f55d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 0.7071068
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6977256487485077373, guid: efd1f097ce29ffa48bb0045d6502f55d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0.7071068
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6977256487485077373, guid: efd1f097ce29ffa48bb0045d6502f55d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6977256487485077373, guid: efd1f097ce29ffa48bb0045d6502f55d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6977256487485077373, guid: efd1f097ce29ffa48bb0045d6502f55d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 90
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6977256487485077373, guid: efd1f097ce29ffa48bb0045d6502f55d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6977256487485077373, guid: efd1f097ce29ffa48bb0045d6502f55d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: efd1f097ce29ffa48bb0045d6502f55d, type: 3}
|
||||
--- !u!1 &1261700233
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -19352,7 +19741,7 @@ RectTransform:
|
|||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 761574181}
|
||||
m_RootOrder: 5
|
||||
m_RootOrder: 4
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
|
|
@ -20986,7 +21375,7 @@ Transform:
|
|||
- {fileID: 1537342002}
|
||||
- {fileID: 39508928}
|
||||
m_Father: {fileID: 1665127616}
|
||||
m_RootOrder: 3
|
||||
m_RootOrder: 5
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1547889400
|
||||
MonoBehaviour:
|
||||
|
|
@ -21052,7 +21441,7 @@ PrefabInstance:
|
|||
- target: {fileID: 878382121558056004, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 55.675
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 878382121558056004, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
|
|
@ -22221,7 +22610,7 @@ PrefabInstance:
|
|||
- target: {fileID: 878382121558056004, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 60.98
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 878382121558056004, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
|
|
@ -22793,6 +23182,73 @@ CanvasRenderer:
|
|||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1641720214}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!1 &1644480537
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1644480538}
|
||||
- component: {fileID: 1644480539}
|
||||
m_Layer: 0
|
||||
m_Name: Wormhole Rig
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1644480538
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1644480537}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 543699679}
|
||||
m_Father: {fileID: 1665127616}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1644480539
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1644480537}
|
||||
m_Enabled: 0
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 45e653bab7fb20e499bda25e1b646fea, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_ExcludedPropertiesInInspector:
|
||||
- m_Script
|
||||
m_LockStageInInspector:
|
||||
m_StreamingVersion: 20170927
|
||||
m_Priority: 10
|
||||
m_StandbyUpdate: 2
|
||||
m_LookAt: {fileID: 0}
|
||||
m_Follow: {fileID: 0}
|
||||
m_Lens:
|
||||
FieldOfView: 60
|
||||
OrthographicSize: 5
|
||||
NearClipPlane: 0.3
|
||||
FarClipPlane: 8192
|
||||
Dutch: 0
|
||||
LensShift: {x: 0, y: 0}
|
||||
m_Transitions:
|
||||
m_BlendHint: 0
|
||||
m_InheritPosition: 0
|
||||
m_OnCameraLive:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_LegacyBlendHint: 0
|
||||
m_ComponentOwner: {fileID: 543699679}
|
||||
--- !u!1 &1647230681
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -22853,9 +23309,11 @@ Transform:
|
|||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 1644480538}
|
||||
- {fileID: 887677623}
|
||||
- {fileID: 393266592}
|
||||
- {fileID: 2115559090}
|
||||
- {fileID: 1066823974}
|
||||
- {fileID: 1547889399}
|
||||
- {fileID: 199435031}
|
||||
- {fileID: 826773974}
|
||||
|
|
@ -23439,7 +23897,7 @@ RectTransform:
|
|||
m_Children:
|
||||
- {fileID: 460484049}
|
||||
m_Father: {fileID: 761574181}
|
||||
m_RootOrder: 2
|
||||
m_RootOrder: 9
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0.5}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
|
|
@ -23458,6 +23916,7 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 60214997723e68547b9c784ebda51d9a, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
GameManager: {fileID: 1009503729}
|
||||
ViewContainer: {fileID: 460484048}
|
||||
LogTextArea: {fileID: 825923021}
|
||||
InputArea: {fileID: 1973552682}
|
||||
|
|
@ -23573,7 +24032,7 @@ RectTransform:
|
|||
- {fileID: 2056162322}
|
||||
- {fileID: 1783772015}
|
||||
m_Father: {fileID: 761574181}
|
||||
m_RootOrder: 4
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
|
|
@ -26445,12 +26904,22 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 59b26802254e34b4bb26f48d0d8b51bf, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
Canvas: {fileID: 761574180}
|
||||
Map: {fileID: 2132980328}
|
||||
GameManager: {fileID: 1009503729}
|
||||
MainCamera: {fileID: 2115559089}
|
||||
SectorCamera: {fileID: 225222202}
|
||||
SectorBackgroundRenderer: {fileID: 1566772337}
|
||||
ZoomSpeed: 0.025
|
||||
MinViewSize: 0.1
|
||||
MaxViewSize: 2
|
||||
PathAnimationButton: {fileID: 1175122072}
|
||||
PathAnimationDamping: 0.01
|
||||
PathAnimationDuration: 30
|
||||
PathAnimationDurationPadding: 1.1
|
||||
LegendPanel: {fileID: 1005841431}
|
||||
LinkAnimationDuration: 1
|
||||
IconAnimationDuration: 0.5
|
||||
--- !u!222 &1998350932
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -26942,6 +27411,7 @@ RectTransform:
|
|||
m_Children:
|
||||
- {fileID: 1998350929}
|
||||
- {fileID: 1005841432}
|
||||
- {fileID: 1175122071}
|
||||
m_Father: {fileID: 1726632265}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
|
|
@ -27786,7 +28256,7 @@ Transform:
|
|||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1665127616}
|
||||
m_RootOrder: 2
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &2115559091
|
||||
MonoBehaviour:
|
||||
|
|
@ -28299,7 +28769,7 @@ MonoBehaviour:
|
|||
ZoneLinkMaterial: {fileID: 2100000, guid: a8d716e09aea7ce48a1220980f19b494, type: 2}
|
||||
MegaPrimaryBoost: 0.75
|
||||
MegaSecondaryBoost: 2
|
||||
MegaLinkBoost: 2
|
||||
MegaLinkBoost: 3
|
||||
EntranceIcon: {fileID: 2800000, guid: 9025249fbeb4b594680d2749b521bb41, type: 3}
|
||||
ExitIcon: {fileID: 2800000, guid: cb18d00f3b884e24da71c10aa20a1a18, type: 3}
|
||||
BossIcon: {fileID: 2800000, guid: 66887e71b9b25b94baa1da4bf12b490d, type: 3}
|
||||
|
|
@ -28308,6 +28778,50 @@ MonoBehaviour:
|
|||
IconDistance: 1
|
||||
IconBackgroundSize: 3
|
||||
LabelDistance: 0.4
|
||||
LinkWidth: 0.002
|
||||
CriticalLinkWidth: 0.005
|
||||
IconScaleAnimation:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0.06951711
|
||||
outSlope: 0.06951711
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0.40278435
|
||||
- serializedVersion: 3
|
||||
time: 0.14126952
|
||||
value: 0.86514527
|
||||
inSlope: 7.18391
|
||||
outSlope: 7.18391
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.18275645
|
||||
outWeight: 0.050399058
|
||||
- serializedVersion: 3
|
||||
time: 0.5151206
|
||||
value: 0.7759909
|
||||
inSlope: 0.021693684
|
||||
outSlope: 0.021693684
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 1
|
||||
inSlope: -0.19486254
|
||||
outSlope: -0.19486254
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
--- !u!4 &2132980329
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
|||
BIN
Assets/Scenes/ARPG_Profiles/Postprocessing Profile Death.asset
(Stored with Git LFS)
BIN
Assets/Scenes/ARPG_Profiles/Postprocessing Profile Death.asset
(Stored with Git LFS)
Binary file not shown.
BIN
Assets/Scenes/ARPG_Profiles/Postprocessing Profile.asset
(Stored with Git LFS)
BIN
Assets/Scenes/ARPG_Profiles/Postprocessing Profile.asset
(Stored with Git LFS)
Binary file not shown.
|
|
@ -229,12 +229,12 @@ PrefabInstance:
|
|||
- target: {fileID: 878382121558056004, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 878382121558056004, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 878382121558056004, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
|
|
@ -249,12 +249,12 @@ PrefabInstance:
|
|||
- target: {fileID: 878382121558056004, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
value: 60.98
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 878382121558056004, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
value: -16
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1713457305180270767, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
|
|
@ -2702,12 +2702,12 @@ PrefabInstance:
|
|||
- target: {fileID: 878382121558056004, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 878382121558056004, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 878382121558056004, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
|
|
@ -2722,12 +2722,12 @@ PrefabInstance:
|
|||
- target: {fileID: 878382121558056004, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
value: 55.675
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 878382121558056004, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
value: -16
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1713457305180270767, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
|
|
@ -3966,10 +3966,10 @@ RectTransform:
|
|||
m_Father: {fileID: 6584140821722344271}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 144.0148}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!114 &6584140821494235354
|
||||
MonoBehaviour:
|
||||
|
|
@ -4009,8 +4009,8 @@ MonoBehaviour:
|
|||
|
||||
<smallcaps><size=50%>terminus'
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: f65e20c70af9671428dd62c7c635e417, type: 2}
|
||||
m_sharedMaterial: {fileID: 21790448164444372, guid: f65e20c70af9671428dd62c7c635e417,
|
||||
m_fontAsset: {fileID: 11400000, guid: 1c5e8a01819db8d4b812bf3d3eecd389, type: 2}
|
||||
m_sharedMaterial: {fileID: -3344498693056860517, guid: 1c5e8a01819db8d4b812bf3d3eecd389,
|
||||
type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
BIN
Assets/Scenes/TestScene_Profiles/PP Profile.asset
(Stored with Git LFS)
BIN
Assets/Scenes/TestScene_Profiles/PP Profile.asset
(Stored with Git LFS)
Binary file not shown.
|
|
@ -201,6 +201,14 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
""expectedControlType"": ""Button"",
|
||||
""processors"": """",
|
||||
""interactions"": """"
|
||||
},
|
||||
{
|
||||
""name"": ""Hide UI"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""1cdb2515-91e1-4895-879d-8a7347e60b21"",
|
||||
""expectedControlType"": ""Button"",
|
||||
""processors"": """",
|
||||
""interactions"": """"
|
||||
}
|
||||
],
|
||||
""bindings"": [
|
||||
|
|
@ -643,6 +651,17 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
""action"": ""Ping"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""3f898572-d165-4e29-93c3-95c3efce5df9"",
|
||||
""path"": ""<Keyboard>/f2"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Keyboard&Mouse"",
|
||||
""action"": ""Hide UI"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -1232,6 +1251,7 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
m_Player_ToggleShield = m_Player.FindAction("Toggle Shield", throwIfNotFound: true);
|
||||
m_Player_OverrideShutdown = m_Player.FindAction("Override Shutdown", throwIfNotFound: true);
|
||||
m_Player_Ping = m_Player.FindAction("Ping", throwIfNotFound: true);
|
||||
m_Player_HideUI = m_Player.FindAction("Hide UI", throwIfNotFound: true);
|
||||
// UI
|
||||
m_UI = asset.FindActionMap("UI", throwIfNotFound: true);
|
||||
m_UI_Navigate = m_UI.FindAction("Navigate", throwIfNotFound: true);
|
||||
|
|
@ -1320,6 +1340,7 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
private readonly InputAction m_Player_ToggleShield;
|
||||
private readonly InputAction m_Player_OverrideShutdown;
|
||||
private readonly InputAction m_Player_Ping;
|
||||
private readonly InputAction m_Player_HideUI;
|
||||
public struct PlayerActions
|
||||
{
|
||||
private @AetheriaInput m_Wrapper;
|
||||
|
|
@ -1347,6 +1368,7 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
public InputAction @ToggleShield => m_Wrapper.m_Player_ToggleShield;
|
||||
public InputAction @OverrideShutdown => m_Wrapper.m_Player_OverrideShutdown;
|
||||
public InputAction @Ping => m_Wrapper.m_Player_Ping;
|
||||
public InputAction @HideUI => m_Wrapper.m_Player_HideUI;
|
||||
public InputActionMap Get() { return m_Wrapper.m_Player; }
|
||||
public void Enable() { Get().Enable(); }
|
||||
public void Disable() { Get().Disable(); }
|
||||
|
|
@ -1425,6 +1447,9 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
@Ping.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnPing;
|
||||
@Ping.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnPing;
|
||||
@Ping.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnPing;
|
||||
@HideUI.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnHideUI;
|
||||
@HideUI.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnHideUI;
|
||||
@HideUI.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnHideUI;
|
||||
}
|
||||
m_Wrapper.m_PlayerActionsCallbackInterface = instance;
|
||||
if (instance != null)
|
||||
|
|
@ -1498,6 +1523,9 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
@Ping.started += instance.OnPing;
|
||||
@Ping.performed += instance.OnPing;
|
||||
@Ping.canceled += instance.OnPing;
|
||||
@HideUI.started += instance.OnHideUI;
|
||||
@HideUI.performed += instance.OnHideUI;
|
||||
@HideUI.canceled += instance.OnHideUI;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1700,6 +1728,7 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
void OnToggleShield(InputAction.CallbackContext context);
|
||||
void OnOverrideShutdown(InputAction.CallbackContext context);
|
||||
void OnPing(InputAction.CallbackContext context);
|
||||
void OnHideUI(InputAction.CallbackContext context);
|
||||
}
|
||||
public interface IUIActions
|
||||
{
|
||||
|
|
|
|||
|
|
@ -68,12 +68,6 @@ public class ActionGameManager : MonoBehaviour
|
|||
public float TargetSpottedBlinkFrequency = 20;
|
||||
public float TargetSpottedBlinkOffset = -.25f;
|
||||
|
||||
[Header("Name Generation")]
|
||||
public TextAsset NameFile;
|
||||
public int NameGeneratorMinLength = 5;
|
||||
public int NameGeneratorMaxLength = 10;
|
||||
public int NameGeneratorOrder = 4;
|
||||
|
||||
[Header("Postprocessing")]
|
||||
public float DeathPPTransitionTime;
|
||||
public PostProcessVolume DeathPP;
|
||||
|
|
@ -81,6 +75,7 @@ public class ActionGameManager : MonoBehaviour
|
|||
public PostProcessVolume SevereHeatstrokePP;
|
||||
|
||||
[Header("Scene Links")]
|
||||
public Transform EffectManagerParent;
|
||||
public TradeMenu TradeMenu;
|
||||
public Prototype HostileTargetIndicator;
|
||||
public PlaceUIElementWorldspace ViewDot;
|
||||
|
|
@ -91,7 +86,8 @@ public class ActionGameManager : MonoBehaviour
|
|||
[FormerlySerializedAs("SectorRenderer")] public ZoneRenderer ZoneRenderer;
|
||||
public CinemachineVirtualCamera DockCamera;
|
||||
public CinemachineVirtualCamera FollowCamera;
|
||||
public GameObject GameplayUI;
|
||||
public CinemachineVirtualCamera WormholeCamera;
|
||||
public CanvasGroup GameplayUI;
|
||||
public MenuPanel Menu;
|
||||
public MapRenderer MenuMap;
|
||||
//public SectorRenderer SectorRenderer;
|
||||
|
|
@ -101,7 +97,9 @@ public class ActionGameManager : MonoBehaviour
|
|||
public InventoryMenu Inventory;
|
||||
public InventoryPanel ShipPanel;
|
||||
public InventoryPanel TargetShipPanel;
|
||||
[FormerlySerializedAs("ConfirmationDialog")] public ConfirmationDialog Dialog;
|
||||
public ConfirmationDialog Dialog;
|
||||
|
||||
public float IntroDuration;
|
||||
|
||||
//public PlayerInput Input;
|
||||
|
||||
|
|
@ -111,7 +109,6 @@ public class ActionGameManager : MonoBehaviour
|
|||
private DirectoryInfo _loadoutPath;
|
||||
private bool _editMode;
|
||||
private float _time;
|
||||
private AetheriaInput _input;
|
||||
private int _zoomLevelIndex;
|
||||
private Entity _currentEntity;
|
||||
|
||||
|
|
@ -123,7 +120,9 @@ public class ActionGameManager : MonoBehaviour
|
|||
private Dictionary<Entity, VisibleHostileIndicator> _visibleHostileIndicators = new Dictionary<Entity, VisibleHostileIndicator>();
|
||||
private List<IDisposable> _shipSubscriptions = new List<IDisposable>();
|
||||
private float _severeHeatstrokePhase;
|
||||
private bool _uiHidden;
|
||||
|
||||
public AetheriaInput Input { get; private set; }
|
||||
public EquippedDockingBay DockingBay { get; private set; }
|
||||
public Entity DockedEntity { get; private set; }
|
||||
|
||||
|
|
@ -164,12 +163,13 @@ public class ActionGameManager : MonoBehaviour
|
|||
|
||||
public void SaveState()
|
||||
{
|
||||
PlayerSettings.CurrentRun = new SavedGame(CurrentSector, Zone, CurrentEntity);
|
||||
PlayerSettings.CurrentRun = new SavedGame(CurrentSector, Zone, DockedEntity??CurrentEntity);
|
||||
SavePlayerSettings();
|
||||
}
|
||||
|
||||
void Start()
|
||||
{
|
||||
EntityInstance.EffectManagerParent = EffectManagerParent;
|
||||
AkSoundEngine.RegisterGameObj(gameObject);
|
||||
ConsoleController.MessageReceiver = this;
|
||||
|
||||
|
|
@ -182,18 +182,18 @@ public class ActionGameManager : MonoBehaviour
|
|||
|
||||
#region Input Handling
|
||||
|
||||
_input = new AetheriaInput();
|
||||
_input.Global.Enable();
|
||||
_input.UI.Enable();
|
||||
Input = new AetheriaInput();
|
||||
Input.Global.Enable();
|
||||
Input.UI.Enable();
|
||||
|
||||
_zoomLevelIndex = Settings.DefaultMinimapZoom;
|
||||
_input.Player.MinimapZoom.performed += context =>
|
||||
Input.Player.MinimapZoom.performed += context =>
|
||||
{
|
||||
_zoomLevelIndex = (_zoomLevelIndex + 1) % Settings.MinimapZoomLevels.Length;
|
||||
ZoneRenderer.MinimapDistance = Settings.MinimapZoomLevels[_zoomLevelIndex];
|
||||
};
|
||||
|
||||
_input.Global.MapToggle.performed += context =>
|
||||
Input.Global.MapToggle.performed += context =>
|
||||
{
|
||||
if (Menu.gameObject.activeSelf && Menu.CurrentTab == MenuTab.Map)
|
||||
{
|
||||
|
|
@ -201,8 +201,8 @@ public class ActionGameManager : MonoBehaviour
|
|||
Menu.gameObject.SetActive(false);
|
||||
if (CurrentEntity != null && CurrentEntity.Parent == null)
|
||||
{
|
||||
_input.Player.Enable();
|
||||
GameplayUI.SetActive(true);
|
||||
Input.Player.Enable();
|
||||
GameplayUI.gameObject.SetActive(true);
|
||||
|
||||
SchematicDisplay.ShowShip(CurrentEntity);
|
||||
ShipPanel.Display(CurrentEntity, true);
|
||||
|
|
@ -212,13 +212,13 @@ public class ActionGameManager : MonoBehaviour
|
|||
}
|
||||
|
||||
Cursor.lockState = CursorLockMode.None;
|
||||
_input.Player.Disable();
|
||||
GameplayUI.SetActive(false);
|
||||
Input.Player.Disable();
|
||||
GameplayUI.gameObject.SetActive(false);
|
||||
Menu.ShowTab(MenuTab.Map);
|
||||
MenuMap.Position = CurrentEntity.Position.xz;
|
||||
};
|
||||
|
||||
_input.Global.Inventory.performed += context =>
|
||||
Input.Global.Inventory.performed += context =>
|
||||
{
|
||||
if (Menu.gameObject.activeSelf && Menu.CurrentTab == MenuTab.Inventory)
|
||||
{
|
||||
|
|
@ -226,8 +226,8 @@ public class ActionGameManager : MonoBehaviour
|
|||
Menu.gameObject.SetActive(false);
|
||||
if (CurrentEntity != null && CurrentEntity.Parent == null)
|
||||
{
|
||||
_input.Player.Enable();
|
||||
GameplayUI.SetActive(true);
|
||||
Input.Player.Enable();
|
||||
GameplayUI.gameObject.SetActive(true);
|
||||
|
||||
SchematicDisplay.ShowShip(CurrentEntity);
|
||||
ShipPanel.Display(CurrentEntity, true);
|
||||
|
|
@ -236,12 +236,12 @@ public class ActionGameManager : MonoBehaviour
|
|||
}
|
||||
|
||||
Cursor.lockState = CursorLockMode.None;
|
||||
_input.Player.Disable();
|
||||
Input.Player.Disable();
|
||||
Menu.ShowTab(MenuTab.Inventory);
|
||||
GameplayUI.SetActive(false);
|
||||
GameplayUI.gameObject.SetActive(false);
|
||||
};
|
||||
|
||||
_input.Global.Dock.performed += context =>
|
||||
Input.Global.Dock.performed += context =>
|
||||
{
|
||||
if (CurrentEntity == null)
|
||||
{
|
||||
|
|
@ -255,7 +255,7 @@ public class ActionGameManager : MonoBehaviour
|
|||
else Undock();
|
||||
};
|
||||
|
||||
_input.Player.EnterWormhole.performed += context =>
|
||||
Input.Player.EnterWormhole.performed += context =>
|
||||
{
|
||||
if(CurrentEntity is Ship ship)
|
||||
{
|
||||
|
|
@ -264,10 +264,17 @@ public class ActionGameManager : MonoBehaviour
|
|||
if (length(wormhole.Position - CurrentEntity.Position.xz) < Settings.GameplaySettings.WormholeExitRadius)
|
||||
{
|
||||
var oldZone = Zone;
|
||||
// var wormholeCameraFollow = new GameObject("Wormhole Camera Follow").transform;
|
||||
// wormholeCameraFollow.position = new Vector3(wormhole.Position.x, -50, wormhole.Position.y);
|
||||
// wormholeCameraFollow.rotation = Quaternion.LookRotation(Vector3.down, ship.LookDirection);
|
||||
// WormholeCamera.enabled = true;
|
||||
// WormholeCamera.Follow = wormholeCameraFollow;
|
||||
// FollowCamera.enabled = false;
|
||||
ship.EnterWormhole(wormhole.Position);
|
||||
ship.OnEnteredWormhole += () =>
|
||||
{
|
||||
GenerateLevel(wormhole.Target);
|
||||
PopulateLevel(wormhole.Target);
|
||||
SectorMap.QueueZoneReveal(wormhole.Target.AdjacentZones);
|
||||
ship.ExitWormhole(ZoneRenderer.WormholeInstances.Keys.First(w=>w.Target==oldZone.SectorZone).Position,
|
||||
Settings.GameplaySettings.WormholeExitVelocity * ItemManager.Random.NextFloat2Direction());
|
||||
CurrentEntity.Zone = Zone;
|
||||
|
|
@ -278,23 +285,29 @@ public class ActionGameManager : MonoBehaviour
|
|||
}
|
||||
};
|
||||
|
||||
_input.Player.OverrideShutdown.performed += context =>
|
||||
Input.Player.HideUI.performed += context =>
|
||||
{
|
||||
_uiHidden = !_uiHidden;
|
||||
GameplayUI.alpha = _uiHidden ? 0 : 1;
|
||||
};
|
||||
|
||||
Input.Player.OverrideShutdown.performed += context =>
|
||||
{
|
||||
CurrentEntity.OverrideShutdown = !CurrentEntity.OverrideShutdown;
|
||||
};
|
||||
|
||||
_input.Player.Ping.performed += context =>
|
||||
Input.Player.Ping.performed += context =>
|
||||
{
|
||||
CurrentEntity.Sensor?.Ping();
|
||||
};
|
||||
|
||||
_input.Player.ToggleHeatsinks.performed += context =>
|
||||
Input.Player.ToggleHeatsinks.performed += context =>
|
||||
{
|
||||
CurrentEntity.HeatsinksEnabled = !CurrentEntity.HeatsinksEnabled;
|
||||
AkSoundEngine.PostEvent(CurrentEntity.HeatsinksEnabled ? "UI_Success" : "UI_Fail", gameObject);
|
||||
};
|
||||
|
||||
_input.Player.ToggleShield.performed += context =>
|
||||
Input.Player.ToggleShield.performed += context =>
|
||||
{
|
||||
if (CurrentEntity.Shield != null)
|
||||
{
|
||||
|
|
@ -305,27 +318,27 @@ public class ActionGameManager : MonoBehaviour
|
|||
|
||||
#region Targeting
|
||||
|
||||
_input.Player.TargetReticle.performed += context =>
|
||||
Input.Player.TargetReticle.performed += context =>
|
||||
{
|
||||
var underReticle = Zone.Entities.Where(x => x != CurrentEntity)
|
||||
.MaxBy(x => dot(normalize(x.Position - CurrentEntity.Position), CurrentEntity.LookDirection));
|
||||
CurrentEntity.Target.Value = CurrentEntity.Target.Value == underReticle ? null : underReticle;
|
||||
};
|
||||
|
||||
_input.Player.TargetNearest.performed += context =>
|
||||
Input.Player.TargetNearest.performed += context =>
|
||||
{
|
||||
CurrentEntity.Target.Value = Zone.Entities.Where(x=>x!=CurrentEntity)
|
||||
.MaxBy(x => length(x.Position - CurrentEntity.Position));
|
||||
};
|
||||
|
||||
_input.Player.TargetNext.performed += context =>
|
||||
Input.Player.TargetNext.performed += context =>
|
||||
{
|
||||
var targets = Zone.Entities.Where(x => x != CurrentEntity).OrderBy(x => length(x.Position - CurrentEntity.Position)).ToArray();
|
||||
var currentTargetIndex = Array.IndexOf(targets, CurrentEntity.Target.Value);
|
||||
CurrentEntity.Target.Value = targets[(currentTargetIndex + 1) % targets.Length];
|
||||
};
|
||||
|
||||
_input.Player.TargetPrevious.performed += context =>
|
||||
Input.Player.TargetPrevious.performed += context =>
|
||||
{
|
||||
var targets = Zone.Entities.Where(x => x != CurrentEntity).OrderBy(x => length(x.Position - CurrentEntity.Position)).ToArray();
|
||||
var currentTargetIndex = Array.IndexOf(targets, CurrentEntity.Target.Value);
|
||||
|
|
@ -337,31 +350,31 @@ public class ActionGameManager : MonoBehaviour
|
|||
|
||||
#region Trigger Groups
|
||||
|
||||
_input.Player.PreviousWeaponGroup.performed += context =>
|
||||
Input.Player.PreviousWeaponGroup.performed += context =>
|
||||
{
|
||||
if (CurrentEntity.Parent != null) return;
|
||||
SchematicDisplay.SelectedGroupIndex--;
|
||||
};
|
||||
|
||||
_input.Player.NextWeaponGroup.performed += context =>
|
||||
Input.Player.NextWeaponGroup.performed += context =>
|
||||
{
|
||||
if (CurrentEntity.Parent != null) return;
|
||||
SchematicDisplay.SelectedGroupIndex++;
|
||||
};
|
||||
|
||||
_input.Player.PreviousWeapon.performed += context =>
|
||||
Input.Player.PreviousWeapon.performed += context =>
|
||||
{
|
||||
if (CurrentEntity.Parent != null) return;
|
||||
SchematicDisplay.SelectedItemIndex--;
|
||||
};
|
||||
|
||||
_input.Player.NextWeapon.performed += context =>
|
||||
Input.Player.NextWeapon.performed += context =>
|
||||
{
|
||||
if (CurrentEntity.Parent != null) return;
|
||||
SchematicDisplay.SelectedItemIndex++;
|
||||
};
|
||||
|
||||
_input.Player.ToggleWeaponGroup.performed += context =>
|
||||
Input.Player.ToggleWeaponGroup.performed += context =>
|
||||
{
|
||||
if (CurrentEntity.Parent != null) return;
|
||||
var item = SchematicDisplay.SchematicItems[SchematicDisplay.SelectedItemIndex];
|
||||
|
|
@ -381,73 +394,73 @@ public class ActionGameManager : MonoBehaviour
|
|||
SchematicDisplay.UpdateTriggerGroups();
|
||||
};
|
||||
|
||||
_input.Player.FireGroup1.started += context =>
|
||||
Input.Player.FireGroup1.started += context =>
|
||||
{
|
||||
if (CurrentEntity.Parent != null) return;
|
||||
foreach (var s in CurrentEntity.TriggerGroups[0].weapons) s.Activate();
|
||||
};
|
||||
|
||||
_input.Player.FireGroup1.canceled += context =>
|
||||
Input.Player.FireGroup1.canceled += context =>
|
||||
{
|
||||
if (CurrentEntity.Parent != null) return;
|
||||
foreach (var s in CurrentEntity.TriggerGroups[0].weapons) s.Deactivate();
|
||||
};
|
||||
|
||||
_input.Player.FireGroup2.started += context =>
|
||||
Input.Player.FireGroup2.started += context =>
|
||||
{
|
||||
if (CurrentEntity.Parent != null) return;
|
||||
foreach (var s in CurrentEntity.TriggerGroups[1].weapons) s.Activate();
|
||||
};
|
||||
|
||||
_input.Player.FireGroup2.canceled += context =>
|
||||
Input.Player.FireGroup2.canceled += context =>
|
||||
{
|
||||
if (CurrentEntity.Parent != null) return;
|
||||
foreach (var s in CurrentEntity.TriggerGroups[1].weapons) s.Deactivate();
|
||||
};
|
||||
|
||||
_input.Player.FireGroup3.started += context =>
|
||||
Input.Player.FireGroup3.started += context =>
|
||||
{
|
||||
if (CurrentEntity.Parent != null) return;
|
||||
foreach (var s in CurrentEntity.TriggerGroups[2].weapons) s.Activate();
|
||||
};
|
||||
|
||||
_input.Player.FireGroup3.canceled += context =>
|
||||
Input.Player.FireGroup3.canceled += context =>
|
||||
{
|
||||
if (CurrentEntity.Parent != null) return;
|
||||
foreach (var s in CurrentEntity.TriggerGroups[2].weapons) s.Deactivate();
|
||||
};
|
||||
|
||||
_input.Player.FireGroup4.started += context =>
|
||||
Input.Player.FireGroup4.started += context =>
|
||||
{
|
||||
if (CurrentEntity.Parent != null) return;
|
||||
foreach (var s in CurrentEntity.TriggerGroups[3].weapons) s.Activate();
|
||||
};
|
||||
|
||||
_input.Player.FireGroup4.canceled += context =>
|
||||
Input.Player.FireGroup4.canceled += context =>
|
||||
{
|
||||
if (CurrentEntity.Parent != null) return;
|
||||
foreach (var s in CurrentEntity.TriggerGroups[3].weapons) s.Deactivate();
|
||||
};
|
||||
|
||||
_input.Player.FireGroup5.started += context =>
|
||||
Input.Player.FireGroup5.started += context =>
|
||||
{
|
||||
if (CurrentEntity.Parent != null) return;
|
||||
foreach (var s in CurrentEntity.TriggerGroups[4].weapons) s.Activate();
|
||||
};
|
||||
|
||||
_input.Player.FireGroup5.canceled += context =>
|
||||
Input.Player.FireGroup5.canceled += context =>
|
||||
{
|
||||
if (CurrentEntity.Parent != null) return;
|
||||
foreach (var s in CurrentEntity.TriggerGroups[4].weapons) s.Deactivate();
|
||||
};
|
||||
|
||||
_input.Player.FireGroup6.started += context =>
|
||||
Input.Player.FireGroup6.started += context =>
|
||||
{
|
||||
if (CurrentEntity.Parent != null) return;
|
||||
foreach (var s in CurrentEntity.TriggerGroups[5].weapons) s.Activate();
|
||||
};
|
||||
|
||||
_input.Player.FireGroup6.canceled += context =>
|
||||
Input.Player.FireGroup6.canceled += context =>
|
||||
{
|
||||
if (CurrentEntity.Parent != null) return;
|
||||
foreach (var s in CurrentEntity.TriggerGroups[5].weapons) s.Deactivate();
|
||||
|
|
@ -458,9 +471,81 @@ public class ActionGameManager : MonoBehaviour
|
|||
#endregion
|
||||
|
||||
StartGame();
|
||||
|
||||
ConsoleController.AddCommand("give",
|
||||
args =>
|
||||
{
|
||||
var itemName = string.Join(" ", args);
|
||||
var item = ItemManager.ItemData.GetAll<EquippableItemData>()
|
||||
.FirstOrDefault(itemData => string.Equals(itemData.Name, itemName, StringComparison.InvariantCultureIgnoreCase));
|
||||
if (item != null)
|
||||
{
|
||||
_currentEntity.CargoBays.First().TryStore(ItemManager.CreateInstance(item, .95f));
|
||||
}
|
||||
});
|
||||
|
||||
ConsoleController.AddCommand("trackmissile",
|
||||
_ =>
|
||||
{
|
||||
foreach (var missileManager in FindObjectsOfType<GuidedProjectileManager>())
|
||||
{
|
||||
missileManager.OnFireGuided.Where(x => x.source == _currentEntity).Take(1).Subscribe(x =>
|
||||
{
|
||||
FollowCamera.Follow = x.missile.transform;
|
||||
FollowCamera.LookAt = x.target;
|
||||
x.missile.OnKill += () =>
|
||||
{
|
||||
FollowCamera.LookAt = ZoneRenderer.EntityInstances[CurrentEntity].LookAtPoint;
|
||||
FollowCamera.Follow = ZoneRenderer.EntityInstances[CurrentEntity].transform;
|
||||
};
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
ConsoleController.AddCommand("pingscene",
|
||||
_ =>
|
||||
{
|
||||
var startTime = Time.time;
|
||||
Observable.EveryUpdate().TakeWhile(_ => Time.time - startTime < 5).Subscribe(
|
||||
_ => Debug.Log($"{(int) (Time.time - startTime)}"),
|
||||
() =>
|
||||
{
|
||||
var nearestFaction = CurrentSector.Factions.MinBy(f => CurrentSector.HomeZones[f].Distance[Zone.SectorZone]);
|
||||
var nearestFactionHomeZone = CurrentSector.HomeZones[nearestFaction];
|
||||
var factionPresence = nearestFaction.InfluenceDistance - nearestFactionHomeZone.Distance[Zone.SectorZone] + 1;
|
||||
|
||||
var loadoutGenerator = new LoadoutGenerator(
|
||||
ref ItemManager.Random,
|
||||
ItemManager,
|
||||
CurrentSector,
|
||||
Zone.SectorZone,
|
||||
nearestFaction,
|
||||
.5f);
|
||||
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
var ship = EntitySerializer.Unpack(ItemManager, Zone, loadoutGenerator.GenerateShipLoadout(), true);
|
||||
ship.Position.xz = _currentEntity.Position.xz +
|
||||
ItemManager.Random.NextFloat2Direction() * ItemManager.Random.NextFloat(50, 500);
|
||||
ship.Zone = Zone;
|
||||
Zone.Entities.Add(ship);
|
||||
ship.Activate();
|
||||
}
|
||||
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
var turret = EntitySerializer.Unpack(ItemManager, Zone, loadoutGenerator.GenerateTurretLoadout(), true);
|
||||
turret.Position.xz = _currentEntity.Position.xz +
|
||||
ItemManager.Random.NextFloat2Direction() * ItemManager.Random.NextFloat(50, 500);
|
||||
turret.Zone = Zone;
|
||||
Zone.Entities.Add(turret);
|
||||
turret.Activate();
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
public void GenerateLevel(SectorZone sectorZone)
|
||||
public void PopulateLevel(SectorZone sectorZone)
|
||||
{
|
||||
if (sectorZone == null) throw new ArgumentNullException(nameof(sectorZone));
|
||||
|
||||
|
|
@ -502,7 +587,8 @@ public class ActionGameManager : MonoBehaviour
|
|||
{
|
||||
if (PlayerSettings.CurrentRun == null)
|
||||
{
|
||||
GenerateLevel(CurrentSector.Entrance);
|
||||
SectorMap.QueueZoneReveal(CurrentSector.Entrance.AdjacentZones.Prepend(CurrentSector.Entrance));
|
||||
PopulateLevel(CurrentSector.Entrance);
|
||||
var loadoutGenerator = new LoadoutGenerator(ref ItemManager.Random, ItemManager, CurrentSector, Zone.SectorZone, null, 2);
|
||||
var ship = EntitySerializer.Unpack(ItemManager, Zone, loadoutGenerator.GenerateShipLoadout(), true);
|
||||
// EntitySerializer.Unpack(ItemManager, Zone, Loadouts.First(x => x.Name == StarterShipTemplate), true);
|
||||
|
|
@ -515,16 +601,48 @@ public class ActionGameManager : MonoBehaviour
|
|||
}
|
||||
else
|
||||
{
|
||||
GenerateLevel(CurrentSector.Zones[PlayerSettings.CurrentRun.CurrentZone]);
|
||||
PopulateLevel(CurrentSector.Zones[PlayerSettings.CurrentRun.CurrentZone]);
|
||||
var targetEntity = Zone.Entities[PlayerSettings.CurrentRun.CurrentZoneEntity];
|
||||
if (targetEntity is OrbitalEntity orbitalEntity)
|
||||
DoDock(orbitalEntity, orbitalEntity.DockingBays.First());
|
||||
else
|
||||
{
|
||||
//StartCoroutine(IntroCutscene(targetEntity as Ship));
|
||||
BindToEntity(targetEntity);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private IEnumerator IntroCutscene(Ship ship)
|
||||
{
|
||||
ZoneRenderer.PerspectiveEntity = ship;
|
||||
var entityPosition = ship.Position.xz;
|
||||
var followOrbit = Zone.Orbits.Keys.MinBy(o => lengthsq(Zone.GetOrbitPosition(o) - entityPosition));
|
||||
var followPlanet = ZoneRenderer.Planets[Zone.Planets.FirstOrDefault(p => p.Value.Orbit == followOrbit).Key];
|
||||
DockCamera.Follow = followPlanet.Body.transform;
|
||||
var rootOrbit = followOrbit;
|
||||
while (Zone.Orbits[rootOrbit].Data.Parent != Guid.Empty)
|
||||
rootOrbit = Zone.Orbits[rootOrbit].Data.Parent;
|
||||
var rootPlanet = ZoneRenderer.Planets[Zone.Planets.FirstOrDefault(p => p.Value.Orbit == rootOrbit).Key];
|
||||
DockCamera.LookAt = rootPlanet.Body.transform;
|
||||
|
||||
var shipVelocity = ship.GetBehavior<VelocityLimit>().Limit;
|
||||
var followOrbitPosition = Zone.GetOrbitPosition(followOrbit);
|
||||
var shipDirection = normalize(Zone.GetOrbitPosition(rootOrbit) - followOrbitPosition);
|
||||
ship.Position.xz = followOrbitPosition - shipDirection * shipVelocity * IntroDuration;
|
||||
|
||||
var startTime = Time.time;
|
||||
while (Time.time - startTime < IntroDuration)
|
||||
{
|
||||
ship.Direction = shipDirection;
|
||||
ship.Velocity = shipDirection * shipVelocity;
|
||||
yield return null;
|
||||
}
|
||||
|
||||
BindToEntity(ship);
|
||||
}
|
||||
|
||||
public void Dock()
|
||||
{
|
||||
if (CurrentEntity.Parent != null) return;
|
||||
|
|
@ -560,8 +678,10 @@ public class ActionGameManager : MonoBehaviour
|
|||
var orbital = (OrbitalEntity) entity;
|
||||
DockCamera.Follow = ZoneRenderer.EntityInstances[orbital].transform;
|
||||
var parentOrbit = Zone.Orbits[orbital.OrbitData].Data.Parent;
|
||||
var parentPlanet = ZoneRenderer.Planets[Zone.Planets.FirstOrDefault(p => p.Value.Orbit == parentOrbit).Key];
|
||||
DockCamera.LookAt = parentPlanet.Body.transform;
|
||||
var parentOrbitPlanet = Zone.Planets.FirstOrDefault(p => p.Value.Orbit == parentOrbit).Key;
|
||||
if (ZoneRenderer.Planets.ContainsKey(parentOrbitPlanet))
|
||||
DockCamera.LookAt = ZoneRenderer.Planets[parentOrbitPlanet].Body.transform;
|
||||
else DockCamera.LookAt = ZoneRenderer.ZoneRoot;
|
||||
Menu.ShowTab(MenuTab.Inventory);
|
||||
}
|
||||
|
||||
|
|
@ -619,9 +739,9 @@ public class ActionGameManager : MonoBehaviour
|
|||
_visibleHostileIndicators.Clear();
|
||||
if(_lockingIndicators!=null) foreach(var (_, indicator, _) in _lockingIndicators)
|
||||
indicator.GetComponent<Prototype>().ReturnToPool();
|
||||
_input.Player.Disable();
|
||||
Input.Player.Disable();
|
||||
Cursor.lockState = CursorLockMode.None;
|
||||
GameplayUI.SetActive(false);
|
||||
GameplayUI.gameObject.SetActive(false);
|
||||
|
||||
foreach(var subscription in _shipSubscriptions) subscription.Dispose();
|
||||
_shipSubscriptions.Clear();
|
||||
|
|
@ -649,8 +769,8 @@ public class ActionGameManager : MonoBehaviour
|
|||
_viewDirection = float3(CurrentEntity.Direction.x,0,CurrentEntity.Direction.y);
|
||||
|
||||
Cursor.lockState = CursorLockMode.Locked;
|
||||
GameplayUI.SetActive(true);
|
||||
_input.Player.Enable();
|
||||
Input.Player.Enable();
|
||||
GameplayUI.gameObject.SetActive(true);
|
||||
ShipPanel.Display(CurrentEntity, true);
|
||||
SchematicDisplay.ShowShip(CurrentEntity);
|
||||
|
||||
|
|
@ -706,24 +826,25 @@ public class ActionGameManager : MonoBehaviour
|
|||
var deathTime = Time.time;
|
||||
UnbindEntity();
|
||||
CurrentEntity = null;
|
||||
Dialog.Clear();
|
||||
Dialog.Title.text = "You have died!";
|
||||
Dialog.Show(() =>
|
||||
{
|
||||
PlayerSettings.CurrentRun = null;
|
||||
StartGame();
|
||||
}, null, "Try again!");
|
||||
Dialog.transform.position = new Vector3(Screen.width / 2, Screen.height / 2);
|
||||
// Dialog.Clear();
|
||||
// Dialog.Title.text = "You have died!";
|
||||
// Dialog.Show(() =>
|
||||
// {
|
||||
// PlayerSettings.CurrentRun = null;
|
||||
// StartGame();
|
||||
// }, null, "Try again!");
|
||||
// Dialog.transform.position = new Vector3(Screen.width / 2, Screen.height / 2);
|
||||
//Dialog.MoveToCursor();
|
||||
Observable.EveryUpdate()
|
||||
.Select(_ => (Time.time - deathTime) / DeathPPTransitionTime)
|
||||
.Where(t => t < 1)
|
||||
.Subscribe(t =>
|
||||
.Where(_ => Time.time - deathTime < DeathPPTransitionTime)
|
||||
.Subscribe(_ =>
|
||||
{
|
||||
var t = (Time.time - deathTime) / DeathPPTransitionTime;
|
||||
HeatstrokePP.weight = 1 - t;
|
||||
SevereHeatstrokePP.weight = 1 - t;
|
||||
DeathPP.weight = t;
|
||||
}, () =>
|
||||
},
|
||||
() =>
|
||||
{
|
||||
HeatstrokePP.weight = 0;
|
||||
SevereHeatstrokePP.weight = 0;
|
||||
|
|
@ -789,7 +910,7 @@ public class ActionGameManager : MonoBehaviour
|
|||
!(indicator.Key.EntityInfoGathered[CurrentEntity] > Settings.GameplaySettings.TargetDetectionInfoThreshold) ||
|
||||
sin(TargetSpottedBlinkFrequency * Time.time) + TargetSpottedBlinkOffset > 0;
|
||||
}
|
||||
var look = _input.Player.Look.ReadValue<Vector2>();
|
||||
var look = Input.Player.Look.ReadValue<Vector2>();
|
||||
_entityYawPitch = float2(_entityYawPitch.x + look.x * Sensitivity.x, clamp(_entityYawPitch.y + look.y * Sensitivity.y, -.45f * PI, .45f * PI));
|
||||
_viewDirection = mul(float3(0, 0, 1), Unity.Mathematics.float3x3.Euler(float3(_entityYawPitch.yx, 0), RotationOrder.YXZ));
|
||||
CurrentEntity.LookDirection = _viewDirection;
|
||||
|
|
@ -801,12 +922,11 @@ public class ActionGameManager : MonoBehaviour
|
|||
|
||||
if(CurrentEntity is Ship ship)
|
||||
{
|
||||
ship.MovementDirection = _input.Player.Move.ReadValue<Vector2>();
|
||||
ship.MovementDirection = Input.Player.Move.ReadValue<Vector2>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Zone.Update(_time, Time.deltaTime);
|
||||
ZoneRenderer.GameTime = _time;
|
||||
Zone.Update(Time.deltaTime);
|
||||
}
|
||||
|
||||
private void LateUpdate()
|
||||
|
|
|
|||
|
|
@ -236,20 +236,20 @@ public class EntityInstance : MonoBehaviour
|
|||
}
|
||||
}
|
||||
}
|
||||
if(hp.Type == HardpointType.Reactor)
|
||||
{
|
||||
var reactorHardpoint = EquipmentHardpoints.FirstOrDefault(x => x.name == hp.Transform);
|
||||
if (reactorHardpoint)
|
||||
{
|
||||
var reactor = item.GetBehavior<Reactor>();
|
||||
if( reactor != null && !string.IsNullOrEmpty(item.Data.SoundEffectTrigger) )
|
||||
{
|
||||
AkSoundEngine.RegisterGameObj(reactorHardpoint.gameObject);
|
||||
AkSoundEngine.PostEvent(item.Data.SoundEffectTrigger, reactorHardpoint.gameObject);
|
||||
_reactor = (reactor, reactorHardpoint.gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
// if(hp.Type == HardpointType.Reactor)
|
||||
// {
|
||||
// var reactorHardpoint = EquipmentHardpoints.FirstOrDefault(x => x.name == hp.Transform);
|
||||
// if (reactorHardpoint)
|
||||
// {
|
||||
// var reactor = item.GetBehavior<Reactor>();
|
||||
// if( reactor != null && !string.IsNullOrEmpty(item.Data.SoundEffectTrigger) )
|
||||
// {
|
||||
// AkSoundEngine.RegisterGameObj(reactorHardpoint.gameObject);
|
||||
// AkSoundEngine.PostEvent(item.Data.SoundEffectTrigger, reactorHardpoint.gameObject);
|
||||
// _reactor = (reactor, reactorHardpoint.gameObject);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
RadiatorMeshes = new Dictionary<Radiator, MeshRenderer>();
|
||||
|
|
@ -356,6 +356,7 @@ public class EntityInstance : MonoBehaviour
|
|||
{
|
||||
distance = cellDist;
|
||||
hitCell = v;
|
||||
hitPos = v + float2(.5f);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -383,14 +384,15 @@ public class EntityInstance : MonoBehaviour
|
|||
// Find the local 2D vector corresponding to the direction of the incoming hit
|
||||
var localHitDirection = transform.InverseTransformDirection(hit.Direction);
|
||||
var penetrationVector = normalize(float2(localHitDirection.x, localHitDirection.z));
|
||||
|
||||
// TODO: Bresenham's line algorithm
|
||||
// March a ray through the ship from the hit position
|
||||
var penetrationPoint = hitPos;
|
||||
var penetrationDistance = 0;
|
||||
while (penetrationDistance < hit.Penetration)
|
||||
var penetrationDistance = 0f;
|
||||
while (penetrationDistance < hit.Penetration && hullData.Shape[int2(penetrationPoint)])
|
||||
{
|
||||
penetrationPoint += penetrationVector * .5f;
|
||||
penetrationDistance += .5f;
|
||||
hitShape[int2(penetrationPoint)] = true;
|
||||
penetrationPoint += penetrationVector * .5f;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -496,15 +498,15 @@ public class EntityInstance : MonoBehaviour
|
|||
AkSoundEngine.SetRTPCValue("performance_quality", r.Key.Item.EquippableItem.Quality, r.Value);
|
||||
}
|
||||
|
||||
if (_reactor.reactor != null)
|
||||
{
|
||||
_reactor.sfxSource.SetActive(_reactor.reactor.Item.Online.Value);
|
||||
AkSoundEngine.SetObjectPosition(_reactor.sfxSource, _reactor.sfxSource.transform);
|
||||
AkSoundEngine.SetRTPCValue("reactor_load", _reactor.reactor.CurrentLoadRatio, _reactor.sfxSource);
|
||||
AkSoundEngine.SetRTPCValue("performance_durability", _reactor.reactor.Item.DurabilityPerformance, _reactor.sfxSource);
|
||||
AkSoundEngine.SetRTPCValue("performance_thermal", _reactor.reactor.Item.ThermalPerformance, _reactor.sfxSource);
|
||||
AkSoundEngine.SetRTPCValue("performance_quality", _reactor.reactor.Item.EquippableItem.Quality, _reactor.sfxSource);
|
||||
}
|
||||
// if (_reactor.reactor != null)
|
||||
// {
|
||||
// _reactor.sfxSource.SetActive(_reactor.reactor.Item.Online.Value);
|
||||
// AkSoundEngine.SetObjectPosition(_reactor.sfxSource, _reactor.sfxSource.transform);
|
||||
// AkSoundEngine.SetRTPCValue("reactor_load", _reactor.reactor.CurrentLoadRatio, _reactor.sfxSource);
|
||||
// AkSoundEngine.SetRTPCValue("performance_durability", _reactor.reactor.Item.DurabilityPerformance, _reactor.sfxSource);
|
||||
// AkSoundEngine.SetRTPCValue("performance_thermal", _reactor.reactor.Item.ThermalPerformance, _reactor.sfxSource);
|
||||
// AkSoundEngine.SetRTPCValue("performance_quality", _reactor.reactor.Item.EquippableItem.Quality, _reactor.sfxSource);
|
||||
// }
|
||||
|
||||
foreach (var x in RadiatorMeshes)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -35,11 +35,11 @@ public class ShipInstance : EntityInstance
|
|||
var thrusterHardpoint = ThrusterHardpoints
|
||||
.FirstOrDefault(t => t.name == thruster.Entity.Hardpoints[thruster.Item.Position.x, thruster.Item.Position.y].Transform);
|
||||
particlesShape.meshRenderer = thrusterHardpoint?.Emitter;
|
||||
if (!string.IsNullOrEmpty(thruster.Item.Data.SoundEffectTrigger) && thrusterHardpoint != null)
|
||||
{
|
||||
AkSoundEngine.RegisterGameObj(thrusterHardpoint.gameObject);
|
||||
AkSoundEngine.PostEvent(thruster.Item.Data.SoundEffectTrigger, thrusterHardpoint.gameObject);
|
||||
}
|
||||
// if (!string.IsNullOrEmpty(thruster.Item.Data.SoundEffectTrigger) && thrusterHardpoint != null)
|
||||
// {
|
||||
// AkSoundEngine.RegisterGameObj(thrusterHardpoint.gameObject);
|
||||
// AkSoundEngine.PostEvent(thruster.Item.Data.SoundEffectTrigger, thrusterHardpoint.gameObject);
|
||||
// }
|
||||
|
||||
return new ThrusterInstance
|
||||
{
|
||||
|
|
@ -87,17 +87,17 @@ public class ShipInstance : EntityInstance
|
|||
var data = Entity.ItemManager.GetData(item);
|
||||
thrusterInstance.MaxParticleCount = thrusterInstance.System.particleCount;
|
||||
emissionModule.rateOverTimeMultiplier = thrusterInstance.BaseEmission * thrusterInstance.Thruster.Axis * (item.Durability / data.Durability);
|
||||
if (thrusterInstance.SfxSource)
|
||||
{
|
||||
var throttle = 0f;
|
||||
if (thrusterInstance.System.particleCount > 0)
|
||||
throttle = (float) thrusterInstance.System.particleCount / thrusterInstance.MaxParticleCount;
|
||||
AkSoundEngine.SetObjectPosition(thrusterInstance.SfxSource, thrusterInstance.SfxSource.transform);
|
||||
AkSoundEngine.SetRTPCValue("thruster_throttle", throttle, thrusterInstance.SfxSource);
|
||||
AkSoundEngine.SetRTPCValue("performance_durability", thrusterInstance.Thruster.Item.DurabilityPerformance, thrusterInstance.SfxSource);
|
||||
AkSoundEngine.SetRTPCValue("performance_thermal", thrusterInstance.Thruster.Item.ThermalPerformance, thrusterInstance.SfxSource);
|
||||
AkSoundEngine.SetRTPCValue("performance_quality", thrusterInstance.Thruster.Item.EquippableItem.Quality, thrusterInstance.SfxSource);
|
||||
}
|
||||
// if (thrusterInstance.SfxSource)
|
||||
// {
|
||||
// var throttle = 0f;
|
||||
// if (thrusterInstance.System.particleCount > 0)
|
||||
// throttle = (float) thrusterInstance.System.particleCount / thrusterInstance.MaxParticleCount;
|
||||
// AkSoundEngine.SetObjectPosition(thrusterInstance.SfxSource, thrusterInstance.SfxSource.transform);
|
||||
// AkSoundEngine.SetRTPCValue("thruster_throttle", throttle, thrusterInstance.SfxSource);
|
||||
// AkSoundEngine.SetRTPCValue("performance_durability", thrusterInstance.Thruster.Item.DurabilityPerformance, thrusterInstance.SfxSource);
|
||||
// AkSoundEngine.SetRTPCValue("performance_thermal", thrusterInstance.Thruster.Item.ThermalPerformance, thrusterInstance.SfxSource);
|
||||
// AkSoundEngine.SetRTPCValue("performance_quality", thrusterInstance.Thruster.Item.EquippableItem.Quality, thrusterInstance.SfxSource);
|
||||
// }
|
||||
}
|
||||
|
||||
transform.rotation = Ship.Rotation;
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ using static Unity.Mathematics.math;
|
|||
using static Unity.Mathematics.noise;
|
||||
using Random = UnityEngine.Random;
|
||||
using static Noise1D;
|
||||
using float3 = Unity.Mathematics.float3;
|
||||
|
||||
public class GuidedProjectile : MonoBehaviour
|
||||
{
|
||||
|
|
@ -31,6 +32,8 @@ public class GuidedProjectile : MonoBehaviour
|
|||
private float _prevDist;
|
||||
private bool _active;
|
||||
private bool _alive;
|
||||
private Vector3 _targetVelocity;
|
||||
private Vector3 _previousTargetPosition;
|
||||
|
||||
public Transform Target { get; set; }
|
||||
public float3 StartPosition { get; set; }
|
||||
|
|
@ -42,6 +45,8 @@ public class GuidedProjectile : MonoBehaviour
|
|||
public DamageType DamageType { get; set; }
|
||||
public Entity SourceEntity { get; set; }
|
||||
|
||||
public event Action OnKill;
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
_active = _alive = true;
|
||||
|
|
@ -67,12 +72,15 @@ public class GuidedProjectile : MonoBehaviour
|
|||
StartCoroutine(FadeOut());
|
||||
return;
|
||||
}
|
||||
var position = (float3) t.position;
|
||||
|
||||
var targetPosition = TargetPosition?.Invoke() ?? Target.position;
|
||||
_targetVelocity = lerp(_targetVelocity, targetPosition - _previousTargetPosition, saturate(Time.deltaTime * 5));
|
||||
_previousTargetPosition = targetPosition;
|
||||
targetPosition = AetheriaMath.FirstOrderIntercept(position,float3.zero, TopSpeed, targetPosition, _targetVelocity);
|
||||
|
||||
var diff = targetPosition - transform.position;
|
||||
var targetDist = diff.magnitude;
|
||||
var position = (float3) t.position;
|
||||
var sourceDist = length(StartPosition.xz - position.xz);
|
||||
|
||||
if (sourceDist > Range || dot(diff,Velocity) < 0)
|
||||
|
|
@ -212,6 +220,7 @@ public class GuidedProjectile : MonoBehaviour
|
|||
{
|
||||
yield return null;
|
||||
}
|
||||
OnKill?.Invoke();
|
||||
GetComponent<Prototype>().ReturnToPool();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
using System.Collections;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UniRx;
|
||||
using Unity.Mathematics;
|
||||
using UnityEngine;
|
||||
using static Unity.Mathematics.math;
|
||||
|
|
@ -8,6 +10,8 @@ public class GuidedProjectileManager : InstantWeaponEffectManager
|
|||
{
|
||||
public Prototype ProjectilePrototype;
|
||||
|
||||
public Subject<(Entity source, Transform target, GuidedProjectile missile)> OnFireGuided = new Subject<(Entity source, Transform target, GuidedProjectile missile)>();
|
||||
|
||||
public override void Fire(InstantWeapon weapon, EquippedItem item, EntityInstance source, EntityInstance target)
|
||||
{
|
||||
if(weapon.Data is LauncherData launcher)
|
||||
|
|
@ -32,6 +36,7 @@ public class GuidedProjectileManager : InstantWeaponEffectManager
|
|||
p.Velocity = barrel.forward * weapon.Velocity;
|
||||
p.Thrust = item.Evaluate(launcher.Thrust);
|
||||
p.TopSpeed = item.Evaluate(launcher.MissileVelocity);
|
||||
OnFireGuided.OnNext((source.Entity, target.transform, p));
|
||||
}
|
||||
else if(weapon.Data is GuidedWeaponData guidance)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
using UnityEngine;
|
||||
|
||||
public class HitscanManager : InstantWeaponEffectManager
|
||||
{
|
||||
public Prototype Prototype;
|
||||
|
|
@ -8,8 +10,12 @@ public class HitscanManager : InstantWeaponEffectManager
|
|||
var hp = source.Entity.Hardpoints[item.Position.x, item.Position.y];
|
||||
var barrel = source.GetBarrel(hp);
|
||||
var t = p.transform;
|
||||
t.position = barrel.position;
|
||||
t.forward = barrel.forward;
|
||||
t.SetParent(barrel, false);
|
||||
t.localRotation = Quaternion.identity;
|
||||
t.localPosition = Vector3.zero;
|
||||
// t.position = barrel.position;
|
||||
// t.forward = barrel.forward;
|
||||
p.Range = weapon.Range;
|
||||
p.Damage = weapon.Damage;
|
||||
p.Penetration = weapon.Penetration;
|
||||
p.Spread = weapon.DamageSpread;
|
||||
|
|
|
|||
|
|
@ -178,8 +178,8 @@ public class InstantWeapon : Weapon, IProgressBehavior, IEventBehavior
|
|||
|
||||
public override void Activate()
|
||||
{
|
||||
if(CanFire)
|
||||
Trigger();
|
||||
base.Activate();
|
||||
// if(CanFire)
|
||||
// Trigger();
|
||||
// base.Activate();
|
||||
}
|
||||
}
|
||||
|
|
@ -38,6 +38,7 @@ public class VelocityLimit : IBehavior
|
|||
_data = data;
|
||||
Entity = entity;
|
||||
Item = item;
|
||||
Limit = Item.Evaluate(_data.TopSpeed);
|
||||
}
|
||||
|
||||
public void Initialize()
|
||||
|
|
|
|||
|
|
@ -135,8 +135,8 @@ public abstract class Entity
|
|||
if(behavior is IInitializableBehavior initializableBehavior)
|
||||
initializableBehavior.Initialize();
|
||||
}
|
||||
//foreach(var entity in Zone.Entities) EntityInfoGathered.Add(entity, 0);
|
||||
_subscriptions.Add(Zone.Entities.ObserveAdd().Subscribe(add => EntityInfoGathered.Add(add.Value, 0)));
|
||||
foreach(var entity in Zone.Entities) EntityInfoGathered[entity] = 0;
|
||||
_subscriptions.Add(Zone.Entities.ObserveAdd().Subscribe(add => EntityInfoGathered[add.Value] = 0));
|
||||
_subscriptions.Add(Zone.Entities.ObserveRemove().Subscribe(remove =>
|
||||
{
|
||||
if (Target.Value == remove.Value) Target.Value = null;
|
||||
|
|
|
|||
|
|
@ -166,7 +166,8 @@ public class ItemManager
|
|||
pow(item.Quality, GameplaySettings.DurabilityQualityExponent));
|
||||
var durability = pow(item.Durability / data.Durability, durabilityExponent * stat.DurabilityExponentMultiplier);
|
||||
var result = lerp(stat.Min, stat.Max, quality * durability);
|
||||
if (float.IsNaN(result)) throw new InvalidOperationException("Performance Stat evaluating as NaN: input data is invalid!");
|
||||
if (float.IsNaN(result))
|
||||
throw new InvalidOperationException($"Performance Stat on {data.Name} evaluating as NaN: input data is invalid! Durability: {item.Durability} / {data.Durability}");
|
||||
return result;
|
||||
|
||||
}
|
||||
|
|
@ -211,6 +212,27 @@ public class ItemManager
|
|||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public CraftedItemInstance CreateInstance(CraftedItemData item, float quality)
|
||||
{
|
||||
if (item is EquippableItemData equippableItemData)
|
||||
{
|
||||
var newGear = new EquippableItem
|
||||
{
|
||||
Data = item.ID,
|
||||
Quality = quality
|
||||
};
|
||||
newGear.Durability = equippableItemData.Durability;
|
||||
return newGear;
|
||||
}
|
||||
|
||||
var newCommodity = new CompoundCommodity
|
||||
{
|
||||
Data = item.ID,
|
||||
Quality = quality
|
||||
};
|
||||
return newCommodity;
|
||||
}
|
||||
|
||||
public CraftedItemInstance CreateInstance(CraftedItemData item)
|
||||
{
|
||||
|
|
@ -227,24 +249,8 @@ public class ItemManager
|
|||
if (t.Rarity > quality)
|
||||
tier = t;
|
||||
}
|
||||
|
||||
if (item is EquippableItemData equippableItemData)
|
||||
{
|
||||
var newGear = new EquippableItem
|
||||
{
|
||||
Data = item.ID,
|
||||
Quality = tier.Quality
|
||||
};
|
||||
newGear.Durability = equippableItemData.Durability;
|
||||
return newGear;
|
||||
}
|
||||
|
||||
var newCommodity = new CompoundCommodity
|
||||
{
|
||||
Data = item.ID,
|
||||
Quality = tier.Quality
|
||||
};
|
||||
return newCommodity;
|
||||
return CreateInstance(item, tier.Quality);
|
||||
}
|
||||
|
||||
public (RarityTier tier, int upgrades) GetTier(CraftedItemInstance item)
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ public class LoadoutGenerator
|
|||
{
|
||||
return ItemManager.ItemData.GetAll<T>()
|
||||
.Where(item => Sector.ContainsFaction(item.Manufacturer) &&
|
||||
(Faction == null || item.Manufacturer == Faction.ID || Faction.Allegiance.ContainsKey(item.Manufacturer)) &&
|
||||
(Faction == null || Faction.Allegiance.ContainsKey(item.Manufacturer)) &&
|
||||
(filter?.Invoke(item) ?? true))
|
||||
.WeightedRandomElements(ref Random, item =>
|
||||
(Faction == null || item.Manufacturer == Faction.ID ? 1 : Faction.Allegiance[item.Manufacturer]) * // Prioritize items from allied manufacturers
|
||||
|
|
@ -133,7 +133,8 @@ public class LoadoutGenerator
|
|||
{
|
||||
var controllerData = RandomItem<GearData>(hardpoint, 2,
|
||||
item => item.Behaviors.Any(b => entity is Ship && b is CockpitData || entity is OrbitalEntity && b is TurretControllerData));
|
||||
if (controllerData == null) throw new InvalidLoadoutException("No compatible controller found for entity!");
|
||||
if (controllerData == null)
|
||||
throw new InvalidLoadoutException("No compatible controller found for entity!");
|
||||
var controller = ItemManager.CreateInstance(controllerData) as EquippableItem;
|
||||
if (!entity.TryEquip(controller))
|
||||
{
|
||||
|
|
@ -145,12 +146,16 @@ public class LoadoutGenerator
|
|||
// If a previously selected item fits, use that one (this is why we must process larger hardpoints first)
|
||||
var itemData = previousItems
|
||||
.FirstOrDefault(i => i.HardpointType == hardpoint.Type && i.Shape.FitsWithin(hardpoint.Shape, hardpoint.Rotation, out _));
|
||||
var previousItem = entity.Equipment.FirstOrDefault(item => item.Data == itemData);
|
||||
itemData ??= RandomItem<GearData>(hardpoint, 2);
|
||||
if (itemData == null) ItemManager.Log($"No compatible item found for entity {Enum.GetName(typeof(HardpointType), hardpoint.Type)} hardpoint!");
|
||||
else
|
||||
{
|
||||
//throw new InvalidLoadoutException($"No compatible item found for entity {Enum.GetName(typeof(HardpointType), hardpoint.Type)} hardpoint!");
|
||||
var item = ItemManager.CreateInstance(itemData) as EquippableItem;
|
||||
EquippableItem item;
|
||||
if(previousItem!=null)
|
||||
item = ItemManager.CreateInstance(itemData, previousItem.EquippableItem.Quality) as EquippableItem;
|
||||
else item = ItemManager.CreateInstance(itemData) as EquippableItem;
|
||||
if (!entity.TryEquip(item))
|
||||
{
|
||||
throw new InvalidLoadoutException($"Failed to equip selected {Enum.GetName(typeof(HardpointType), hardpoint.Type)}!");
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ public class Ship : Entity
|
|||
|
||||
public void EnterWormhole(float2 wormholePosition)
|
||||
{
|
||||
Target.Value = null;
|
||||
_wormholeAnimationProgress = 0;
|
||||
_enteringWormhole = true;
|
||||
_wormholeEntryPosition = Position.xz;
|
||||
|
|
|
|||
|
|
@ -30,17 +30,22 @@ public class Zone
|
|||
private HashSet<Guid> _updatedOrbits = new HashSet<Guid>();
|
||||
|
||||
private ItemManager _itemManager;
|
||||
private float _time;
|
||||
private double _time;
|
||||
private Random _random;
|
||||
public List<Agent> Agents = new List<Agent>();
|
||||
|
||||
private List<Task> BeltUpdates = new List<Task>();
|
||||
|
||||
public float Time
|
||||
{
|
||||
get => (float) _time;
|
||||
}
|
||||
public ZonePack Pack { get; }
|
||||
public SectorZone SectorZone { get; }
|
||||
|
||||
public Zone(ItemManager itemManager, PlanetSettings settings, ZonePack pack, SectorZone sectorZone)
|
||||
{
|
||||
_time = pack.Time;
|
||||
SectorZone = sectorZone;
|
||||
Pack = pack;
|
||||
_itemManager = itemManager;
|
||||
|
|
@ -102,7 +107,8 @@ public class Zone
|
|||
Mass = Pack.Mass,
|
||||
Entities = Entities.Select(EntitySerializer.Pack).ToList(),
|
||||
Orbits = Orbits.Values.Select(o=>o.Data).ToList(),
|
||||
Planets = Planets.Values.ToList()
|
||||
Planets = Planets.Values.ToList(),
|
||||
Time = _time
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -111,9 +117,9 @@ public class Zone
|
|||
Orbits.Add(orbit.ID, new Orbit(Settings, orbit));
|
||||
}
|
||||
|
||||
public void Update(float time, float deltaTime)
|
||||
public void Update(float deltaTime)
|
||||
{
|
||||
_time = time;
|
||||
_time += deltaTime;
|
||||
_updatedOrbits.Clear();
|
||||
foreach (var t in BeltUpdates)
|
||||
t.Wait();
|
||||
|
|
@ -228,10 +234,10 @@ public class Zone
|
|||
}
|
||||
else size = Settings.AsteroidSize.Evaluate(beltData.Asteroids[i].Size);
|
||||
|
||||
belt.NewRotations[i] = _time * beltData.Asteroids[i].RotationSpeed % (PI * 2);
|
||||
belt.NewRotations[i] = (float) (_time * beltData.Asteroids[i].RotationSpeed % (PI * 2));
|
||||
belt.NewScales[i] = size;
|
||||
var pos = OrbitData.Evaluate(frac(_time / Settings.OrbitPeriod.Evaluate(beltData.Asteroids[i].Distance) +
|
||||
beltData.Asteroids[i].Phase)) * beltData.Asteroids[i].Distance + orbitPosition;
|
||||
var pos = OrbitData.Evaluate((float) frac(_time / Settings.OrbitPeriod.Evaluate(beltData.Asteroids[i].Distance) +
|
||||
beltData.Asteroids[i].Phase)) * beltData.Asteroids[i].Distance + orbitPosition;
|
||||
belt.NewVelocities[i] = pos - belt.Positions[i].xz;
|
||||
belt.NewPositions[i] = float3(pos.x, GetHeight(pos), pos.y);
|
||||
}
|
||||
|
|
@ -319,7 +325,7 @@ public class Zone
|
|||
var depth = gas.GravityWavesDepth.Value;
|
||||
var frequency = Settings.WaveFrequency.Evaluate(body.BodyData.Mass.Value);
|
||||
var speed = gas.GravityWavesSpeed.Value;
|
||||
result -= RadialWaves(sqrt(distSqr) / waveRadius, 8, 1.25f, frequency, _time * speed) * depth;
|
||||
result -= RadialWaves(sqrt(distSqr) / waveRadius, 8, 1.25f, frequency, (float) (_time * speed)) * depth;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,6 +30,9 @@ public class ZonePack
|
|||
|
||||
[JsonProperty("mass"), Key(4)]
|
||||
public float Mass = 10000;
|
||||
|
||||
[JsonProperty("time"), Key(5)]
|
||||
public double Time;
|
||||
}
|
||||
|
||||
// [RethinkTable("Galaxy"), MessagePackObject, JsonObject(MemberSerialization.OptIn)]
|
||||
|
|
|
|||
|
|
@ -223,9 +223,9 @@ public static class ZoneGenerator
|
|||
|
||||
var nearestFaction = sector.Factions.MinBy(f => sector.HomeZones[f].Distance[sectorZone]);
|
||||
var nearestFactionHomeZone = sector.HomeZones[nearestFaction];
|
||||
var factionPresence = nearestFaction.InfluenceDistance - nearestFactionHomeZone.Distance[sectorZone];
|
||||
var factionPresence = nearestFaction.InfluenceDistance - nearestFactionHomeZone.Distance[sectorZone] + 1;
|
||||
|
||||
var loadoutGenerator = new LoadoutGenerator(ref random, itemManager, sector, sectorZone, nearestFaction, 1);
|
||||
var loadoutGenerator = new LoadoutGenerator(ref random, itemManager, sector, sectorZone, nearestFaction, .5f);
|
||||
for (int i = 0; i < factionPresence; i++)
|
||||
{
|
||||
pack.Entities.Add(loadoutGenerator.GenerateShipLoadout());
|
||||
|
|
|
|||
|
|
@ -13,12 +13,14 @@ using UnityEngine.InputSystem;
|
|||
public class ConsoleView : MonoBehaviour {
|
||||
bool _didShow = false;
|
||||
|
||||
public ActionGameManager GameManager;
|
||||
public GameObject ViewContainer; //Container for console view, should be a child of this GameObject
|
||||
public TextMeshProUGUI LogTextArea;
|
||||
public TextMeshProUGUI InputArea;
|
||||
public ScrollRect Scroll;
|
||||
|
||||
private string _inputString = "";
|
||||
private CursorLockMode _previousCursorLockMode;
|
||||
|
||||
public string InputString
|
||||
{
|
||||
|
|
@ -110,7 +112,20 @@ public class ConsoleView : MonoBehaviour {
|
|||
ViewContainer.SetActive(visible);
|
||||
Visible = visible;
|
||||
if(visible)
|
||||
{
|
||||
GameManager.Input.Global.Disable();
|
||||
GameManager.Input.Player.Disable();
|
||||
GameManager.Input.UI.Disable();
|
||||
_previousCursorLockMode = Cursor.lockState;
|
||||
Cursor.lockState = CursorLockMode.None;
|
||||
}
|
||||
else
|
||||
{
|
||||
GameManager.Input.Global.Enable();
|
||||
GameManager.Input.Player.Enable();
|
||||
GameManager.Input.UI.Enable();
|
||||
Cursor.lockState = _previousCursorLockMode;
|
||||
}
|
||||
}
|
||||
|
||||
void OnVisibilityChanged(bool visible) {
|
||||
|
|
|
|||
|
|
@ -377,28 +377,35 @@ public class PropertiesPanel : MonoBehaviour
|
|||
AddProperty("Thermal Mass", () => Context.GetThermalMass(item).SignificantDigits(Context.GameplaySettings.SignificantDigits));
|
||||
if (item is EquippableItem gear)
|
||||
{
|
||||
var tier = entity.ItemManager.GetTier(gear);
|
||||
var (tier, upgrades) = entity.ItemManager.GetTier(gear);
|
||||
Title.text =
|
||||
$"<color=#{ColorUtility.ToHtmlStringRGB(tier.tier.Color.ToColor())}>{data.Name}</color><smallcaps><size=60%> ({tier.tier.Name}{new string('+', tier.upgrades)})";
|
||||
var gearData = Context.GetData(gear);
|
||||
AddProperty("Durability", () =>
|
||||
$"{gear.Durability.SignificantDigits(Context.GameplaySettings.SignificantDigits)}/{gearData.Durability.SignificantDigits(Context.GameplaySettings.SignificantDigits)}");
|
||||
foreach (var behavior in gearData.Behaviors)
|
||||
$"<color=#{ColorUtility.ToHtmlStringRGB(tier.Color.ToColor())}>{data.Name}</color><smallcaps><size=60%> ({tier.Name}{new string('+', upgrades)})";
|
||||
if (gear.Durability < .01f)
|
||||
{
|
||||
var type = behavior.GetType();
|
||||
if (type.GetCustomAttribute(typeof(RuntimeInspectable)) != null)
|
||||
AddProperty("Item destroyed!");
|
||||
}
|
||||
else
|
||||
{
|
||||
var gearData = Context.GetData(gear);
|
||||
AddProperty("Durability", () =>
|
||||
$"{gear.Durability.SignificantDigits(Context.GameplaySettings.SignificantDigits)}/{gearData.Durability.SignificantDigits(Context.GameplaySettings.SignificantDigits)}");
|
||||
foreach (var behavior in gearData.Behaviors)
|
||||
{
|
||||
foreach (var field in type.GetFields().Where(f => f.GetCustomAttribute<RuntimeInspectable>() != null))
|
||||
var type = behavior.GetType();
|
||||
if (type.GetCustomAttribute(typeof(RuntimeInspectable)) != null)
|
||||
{
|
||||
var fieldType = field.FieldType;
|
||||
if (fieldType == typeof(float))
|
||||
AddProperty(field.Name, () => $"{((float) field.GetValue(behavior)).SignificantDigits(Context.GameplaySettings.SignificantDigits)}");
|
||||
else if (fieldType == typeof(int))
|
||||
AddProperty(field.Name, () => $"{(int) field.GetValue(behavior)}");
|
||||
else if (fieldType == typeof(PerformanceStat))
|
||||
foreach (var field in type.GetFields().Where(f => f.GetCustomAttribute<RuntimeInspectable>() != null))
|
||||
{
|
||||
var stat = (PerformanceStat) field.GetValue(behavior);
|
||||
AddProperty(field.Name, () => $"{Context.Evaluate(stat, gear).SignificantDigits(Context.GameplaySettings.SignificantDigits)}");
|
||||
var fieldType = field.FieldType;
|
||||
if (fieldType == typeof(float))
|
||||
AddProperty(field.Name, () => $"{((float) field.GetValue(behavior)).SignificantDigits(Context.GameplaySettings.SignificantDigits)}");
|
||||
else if (fieldType == typeof(int))
|
||||
AddProperty(field.Name, () => $"{(int) field.GetValue(behavior)}");
|
||||
else if (fieldType == typeof(PerformanceStat))
|
||||
{
|
||||
var stat = (PerformanceStat) field.GetValue(behavior);
|
||||
AddProperty(field.Name, () => $"{Context.Evaluate(stat, gear).SignificantDigits(Context.GameplaySettings.SignificantDigits)}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,9 +35,205 @@ public class SectorMap : MonoBehaviour
|
|||
public float IconDistance = 1;
|
||||
public float IconBackgroundSize = 3;
|
||||
public float LabelDistance = .4f;
|
||||
public float LinkWidth;
|
||||
public float CriticalLinkWidth;
|
||||
public AnimationCurve IconScaleAnimation;
|
||||
|
||||
private Dictionary<Faction, (RenderTexture influence, Material primaryMaterial, Material secondaryMaterial, Material linkMaterial)> _factionMaterials =
|
||||
new Dictionary<Faction, (RenderTexture influence, Material primaryMaterial, Material secondaryMaterial, Material linkMaterial)>();
|
||||
private HashSet<SectorZone> _revealedZones = new HashSet<SectorZone>();
|
||||
private HashSet<(SectorZone, SectorZone)> _revealedLinks = new HashSet<(SectorZone, SectorZone)>();
|
||||
|
||||
private Dictionary<Faction, (MeshRenderer influenceRenderer, RenderTexture influence, Material primaryMaterial, Material secondaryMaterial, Material linkMaterial)> _factionMaterials =
|
||||
new Dictionary<Faction, (MeshRenderer influenceRenderer, RenderTexture influence, Material primaryMaterial, Material secondaryMaterial, Material linkMaterial)>();
|
||||
|
||||
private Dictionary<SectorZone, SectorZoneUI> _zoneInstances = new Dictionary<SectorZone, SectorZoneUI>();
|
||||
private Queue<IEnumerable<SectorZone>> _queuedZoneReveals = new Queue<IEnumerable<SectorZone>>();
|
||||
|
||||
public void QueueZoneReveal(IEnumerable<SectorZone> zones)
|
||||
{
|
||||
_queuedZoneReveals.Enqueue(zones);
|
||||
}
|
||||
|
||||
public void StartReveal(float linkDuration, float iconDuration)
|
||||
{
|
||||
if (_queuedZoneReveals.Count > 0)
|
||||
{
|
||||
StartCoroutine(RevealZone(_queuedZoneReveals.Dequeue(), linkDuration, iconDuration));
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerator RevealZone(IEnumerable<SectorZone> zones, float linkDuration, float iconDuration)
|
||||
{
|
||||
var linksToReveal = new List<(float2 start, float2 end, Transform linkInstance, bool critical)>();
|
||||
var zoneTransforms = new List<Transform>();
|
||||
var zoneInstanceScale = ZonePrototype.transform.localScale;
|
||||
|
||||
foreach (var zone in zones)
|
||||
{
|
||||
if (!_revealedZones.Contains(zone))
|
||||
{
|
||||
var zoneInstance = ZonePrototype.Instantiate<SectorZoneUI>();
|
||||
_zoneInstances[zone] = zoneInstance;
|
||||
var zoneInstanceTransform = zoneInstance.transform;
|
||||
zoneTransforms.Add(zoneInstanceTransform);
|
||||
zoneInstanceTransform.localPosition = new Vector3(zone.Position.x, zone.Position.y);
|
||||
if(zone.Owner != null)
|
||||
{
|
||||
zoneInstance.Primary.sharedMaterial = _factionMaterials[zone.Owner].primaryMaterial;
|
||||
zoneInstance.Secondary.sharedMaterial = _factionMaterials[zone.Owner].secondaryMaterial;
|
||||
if(zone == ActionGameManager.CurrentSector.HomeZones[zone.Owner])
|
||||
zoneInstance.Secondary.transform.localScale = Vector3.one * 4;
|
||||
}
|
||||
else
|
||||
{
|
||||
zoneInstance.Secondary.gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
var isOnCriticalPath = ActionGameManager.CurrentSector.ExitPath.Contains(zone);
|
||||
foreach (var adjacentZone in zone.AdjacentZones)
|
||||
{
|
||||
// If the adjacent zone is in the set already revealed, then show the link
|
||||
if (_revealedZones.Contains(adjacentZone) &&
|
||||
!(_revealedLinks.Contains((zone, adjacentZone)) ||
|
||||
_revealedLinks.Contains((adjacentZone, zone))))
|
||||
{
|
||||
var link = LinkPrototype.Instantiate<Transform>();
|
||||
var critical = isOnCriticalPath && ActionGameManager.CurrentSector.ExitPath.Contains(adjacentZone);
|
||||
linksToReveal.Add((zone.Position, adjacentZone.Position, link, critical));
|
||||
if (zone.Owner != null && zone.Owner == adjacentZone.Owner)
|
||||
link.GetComponent<MeshRenderer>().sharedMaterial = _factionMaterials[zone.Owner].linkMaterial;
|
||||
|
||||
var dir = normalize(zone.Position - adjacentZone.Position);
|
||||
link.rotation = Quaternion.Euler(0,0,atan2(dir.y,dir.x) * Mathf.Rad2Deg);
|
||||
|
||||
placeLink(zone.Position, adjacentZone.Position, link, 0, critical);
|
||||
}
|
||||
}
|
||||
_revealedZones.Add(zone);
|
||||
|
||||
// Determine center of mass for adjacent zone links, used for placement of label and icons
|
||||
var linkDirection = normalize(zone.AdjacentZones
|
||||
.Aggregate(float2.zero, (v, adjacentZone) => v + normalize(adjacentZone.Position - zone.Position)));
|
||||
|
||||
var zoneText = zoneInstance.Label;
|
||||
zoneText.text = zone.Name;
|
||||
var zoneTextTransform = zoneText.GetComponent<RectTransform>();
|
||||
zoneTextTransform.pivot = new Vector2(sign(linkDirection.x)/2+.5f,sign(linkDirection.y)/2+.5f);
|
||||
zoneTextTransform.localPosition = new Vector3(-linkDirection.x * LabelDistance, -linkDirection.y * LabelDistance, -1);
|
||||
|
||||
if (zone == ActionGameManager.CurrentSector.Entrance)
|
||||
{
|
||||
var iconInstance = IconPrototype.Instantiate<MeshRenderer>();
|
||||
iconInstance.material.mainTexture = EntranceIcon;
|
||||
var iconTransform = iconInstance.transform;
|
||||
iconTransform.SetParent(zoneInstanceTransform);
|
||||
iconTransform.localScale = Vector3.one;
|
||||
iconTransform.localPosition = new Vector3(-linkDirection.x * IconDistance, -linkDirection.y * IconDistance);
|
||||
}
|
||||
|
||||
if (zone == ActionGameManager.CurrentSector.Exit)
|
||||
{
|
||||
var iconInstance = IconPrototype.Instantiate<MeshRenderer>();
|
||||
iconInstance.material.mainTexture = ExitIcon;
|
||||
var iconTransform = iconInstance.transform;
|
||||
iconTransform.SetParent(zoneInstanceTransform);
|
||||
iconTransform.localScale = Vector3.one;
|
||||
iconTransform.localPosition = new Vector3(-linkDirection.x * IconDistance, -linkDirection.y * IconDistance);
|
||||
}
|
||||
|
||||
var homeMega = ActionGameManager.CurrentSector.HomeZones.Keys
|
||||
.FirstOrDefault(m => ActionGameManager.CurrentSector.HomeZones[m] == zone);
|
||||
if (homeMega != null)
|
||||
{
|
||||
var backgroundInstance = IconBackgroundPrototype.Instantiate<MeshRenderer>();
|
||||
var iconInstance = IconPrototype.Instantiate<MeshRenderer>();
|
||||
|
||||
backgroundInstance.material.SetColor("_Color", homeMega.SecondaryColor.ToColor());
|
||||
iconInstance.material.mainTexture = HomeIcon;
|
||||
iconInstance.material.SetColor("_Color", homeMega.PrimaryColor.ToColor());
|
||||
|
||||
var backgroundTransform = backgroundInstance.transform;
|
||||
var iconTransform = iconInstance.transform;
|
||||
|
||||
backgroundTransform.SetParent(zoneInstanceTransform);
|
||||
iconTransform.SetParent(zoneInstanceTransform);
|
||||
|
||||
backgroundTransform.localScale = Vector3.one * IconBackgroundSize;
|
||||
iconTransform.localScale = Vector3.one;
|
||||
|
||||
backgroundTransform.localPosition = new Vector3(-linkDirection.x * IconDistance, -linkDirection.y * IconDistance, .5f);
|
||||
iconTransform.localPosition = new Vector3(-linkDirection.x * IconDistance, -linkDirection.y * IconDistance);
|
||||
}
|
||||
|
||||
var bossMega = ActionGameManager.CurrentSector.BossZones.Keys
|
||||
.FirstOrDefault(m => ActionGameManager.CurrentSector.BossZones[m] == zone);
|
||||
if (bossMega != null)
|
||||
{
|
||||
var backgroundInstance = IconBackgroundPrototype.Instantiate<MeshRenderer>();
|
||||
var iconInstance = IconPrototype.Instantiate<MeshRenderer>();
|
||||
|
||||
backgroundInstance.material.SetColor("_Color", bossMega.SecondaryColor.ToColor());
|
||||
iconInstance.material.mainTexture = BossIcon;
|
||||
iconInstance.material.SetColor("_Color", bossMega.PrimaryColor.ToColor());
|
||||
|
||||
var backgroundTransform = backgroundInstance.transform;
|
||||
var iconTransform = iconInstance.transform;
|
||||
|
||||
backgroundTransform.SetParent(zoneInstanceTransform);
|
||||
iconTransform.SetParent(zoneInstanceTransform);
|
||||
|
||||
backgroundTransform.localScale = Vector3.one * IconBackgroundSize;
|
||||
iconTransform.localScale = Vector3.one;
|
||||
|
||||
if (homeMega != null)
|
||||
{
|
||||
backgroundTransform.localPosition = new Vector3(linkDirection.x * IconDistance, linkDirection.y * IconDistance, .5f);
|
||||
iconTransform.localPosition = new Vector3(linkDirection.x * IconDistance, linkDirection.y * IconDistance);
|
||||
}
|
||||
else
|
||||
{
|
||||
backgroundTransform.localPosition = new Vector3(-linkDirection.x * IconDistance, -linkDirection.y * IconDistance, .5f);
|
||||
iconTransform.localPosition = new Vector3(-linkDirection.x * IconDistance, -linkDirection.y * IconDistance);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
foreach (var tr in zoneTransforms) tr.gameObject.SetActive(false);
|
||||
|
||||
// Local function for animating the placement of a link
|
||||
void placeLink(float2 start, float2 end, Transform link, float t, bool critical)
|
||||
{
|
||||
var pos = lerp(start, end, t / 2);
|
||||
link.localPosition = new Vector3(pos.x, pos.y);
|
||||
|
||||
var localScale = link.localScale;
|
||||
localScale = new Vector3(length(start - end)*t, critical ? CriticalLinkWidth : LinkWidth, 1);
|
||||
link.localScale = localScale;
|
||||
}
|
||||
|
||||
var startTime = Time.time;
|
||||
while (Time.time - startTime < linkDuration)
|
||||
{
|
||||
var t = (Time.time - startTime) / linkDuration;
|
||||
foreach (var (start, end, link, critical) in linksToReveal) placeLink(end, start, link, t, critical);
|
||||
|
||||
yield return null;
|
||||
}
|
||||
foreach (var (start, end, link, critical) in linksToReveal) placeLink(start, end, link, 1, critical);
|
||||
|
||||
foreach (var tr in zoneTransforms) tr.gameObject.SetActive(true);
|
||||
startTime = Time.time;
|
||||
while (Time.time - startTime < iconDuration)
|
||||
{
|
||||
var t = (Time.time - startTime) / iconDuration;
|
||||
foreach (var tr in zoneTransforms) tr.localScale = zoneInstanceScale * IconScaleAnimation.Evaluate(t);
|
||||
RenderInfluence();
|
||||
|
||||
yield return null;
|
||||
}
|
||||
foreach (var tr in zoneTransforms) tr.localScale = zoneInstanceScale;
|
||||
|
||||
StartReveal(linkDuration, iconDuration);
|
||||
}
|
||||
|
||||
public void Start()
|
||||
{
|
||||
|
|
@ -48,171 +244,31 @@ public class SectorMap : MonoBehaviour
|
|||
}
|
||||
foreach (var mega in ActionGameManager.CurrentSector.Factions)
|
||||
{
|
||||
var influenceTexture = new RenderTexture(1024, 1024, 0, RenderTextureFormat.RHalf);
|
||||
var influenceRenderer = InfluenceRendererPrototype.Instantiate<MeshRenderer>();
|
||||
|
||||
influenceRenderer.material.mainTexture = influenceTexture;
|
||||
influenceRenderer.material.SetColor("_Color1", mega.PrimaryColor.ToColor());
|
||||
influenceRenderer.material.SetColor("_Color2", mega.SecondaryColor.ToColor());
|
||||
influenceRenderer.material.SetFloat("_FillTilt", Random.value * PI);
|
||||
|
||||
var primary = Instantiate(ZonePrimaryMaterial);
|
||||
primary.SetColor("_Color", (mega.PrimaryColor * MegaPrimaryBoost).ToColor());
|
||||
|
||||
var secondary = Instantiate(ZoneSecondaryMaterial);
|
||||
secondary.SetColor("_Color", (mega.SecondaryColor * MegaSecondaryBoost).ToColor());
|
||||
|
||||
var link = Instantiate(ZoneLinkMaterial);
|
||||
link.SetColor("_Color", (mega.PrimaryColor * MegaLinkBoost).ToColor());
|
||||
_factionMaterials.Add(mega, (new RenderTexture(1024, 1024, 0, RenderTextureFormat.RHalf), primary, secondary, link));
|
||||
|
||||
_factionMaterials.Add(mega, (influenceRenderer, influenceTexture, primary, secondary, link));
|
||||
|
||||
var legendElement = LegendPrototype.Instantiate<LegendElement>();
|
||||
legendElement.Primary.color = mega.PrimaryColor.ToColor();
|
||||
legendElement.Secondary.color = mega.SecondaryColor.ToColor();
|
||||
legendElement.Label.text = mega.ShortName;
|
||||
}
|
||||
|
||||
var visitedZones = new HashSet<SectorZone>();
|
||||
//Debug.Log($"Found {sector.Zones.Count(z=>!z.AdjacentZones.Any())} orphaned zones!");
|
||||
|
||||
var zoneInstances = new Dictionary<SectorZone, SectorZoneUI>();
|
||||
foreach (var zone in ActionGameManager.CurrentSector.Zones)
|
||||
{
|
||||
var zoneInstance = ZonePrototype.Instantiate<SectorZoneUI>();
|
||||
zoneInstances[zone] = zoneInstance;
|
||||
var zoneInstanceTransform = zoneInstance.transform;
|
||||
zoneInstanceTransform.localPosition = new Vector3(zone.Position.x, zone.Position.y);
|
||||
if(zone.Owner != null)
|
||||
{
|
||||
zoneInstance.Primary.sharedMaterial = _factionMaterials[zone.Owner].primaryMaterial;
|
||||
zoneInstance.Secondary.sharedMaterial = _factionMaterials[zone.Owner].secondaryMaterial;
|
||||
}
|
||||
//zoneInstance.Background.transform.localScale = Vector3.one * (sector.HomeZones.Values.Any(os=>os==zone) ? 4 : 2);
|
||||
var linkDirection = float2.zero;
|
||||
foreach (var link in zone.AdjacentZones)
|
||||
{
|
||||
linkDirection += normalize(link.Position - zone.Position);
|
||||
if (!visitedZones.Contains(link))
|
||||
{
|
||||
var linkInstance = LinkPrototype.Instantiate<Transform>();
|
||||
var pos = (zone.Position + link.Position) / 2;
|
||||
linkInstance.localPosition = new Vector3(pos.x, pos.y);
|
||||
if (zone.Owner != null && zone.Owner == link.Owner)
|
||||
linkInstance.GetComponent<MeshRenderer>().sharedMaterial = _factionMaterials[zone.Owner].linkMaterial;
|
||||
|
||||
var localScale = linkInstance.localScale;
|
||||
localScale = new Vector3(length(zone.Position - link.Position), localScale.y, localScale.z);
|
||||
linkInstance.localScale = localScale;
|
||||
|
||||
var dir = normalize(zone.Position - link.Position);
|
||||
linkInstance.rotation = Quaternion.Euler(0,0,atan2(dir.y,dir.x) * Mathf.Rad2Deg);
|
||||
}
|
||||
}
|
||||
|
||||
linkDirection = normalize(linkDirection);
|
||||
var zoneText = zoneInstance.Label;
|
||||
zoneText.text = zone.Name;
|
||||
var zoneTextTransform = zoneText.GetComponent<RectTransform>();
|
||||
zoneTextTransform.pivot = new Vector2(sign(linkDirection.x)/2+.5f,sign(linkDirection.y)/2+.5f);
|
||||
zoneTextTransform.localPosition = new Vector3(-linkDirection.x * LabelDistance, -linkDirection.y * LabelDistance, -1);
|
||||
visitedZones.Add(zone);
|
||||
|
||||
if (zone == ActionGameManager.CurrentSector.Entrance)
|
||||
{
|
||||
var iconInstance = IconPrototype.Instantiate<MeshRenderer>();
|
||||
iconInstance.material.mainTexture = EntranceIcon;
|
||||
var iconTransform = iconInstance.transform;
|
||||
iconTransform.SetParent(zoneInstanceTransform);
|
||||
iconTransform.localScale = Vector3.one;
|
||||
iconTransform.localPosition = new Vector3(-linkDirection.x * IconDistance, -linkDirection.y * IconDistance);
|
||||
}
|
||||
|
||||
if (zone == ActionGameManager.CurrentSector.Exit)
|
||||
{
|
||||
var iconInstance = IconPrototype.Instantiate<MeshRenderer>();
|
||||
iconInstance.material.mainTexture = ExitIcon;
|
||||
var iconTransform = iconInstance.transform;
|
||||
iconTransform.SetParent(zoneInstanceTransform);
|
||||
iconTransform.localScale = Vector3.one;
|
||||
iconTransform.localPosition = new Vector3(-linkDirection.x * IconDistance, -linkDirection.y * IconDistance);
|
||||
}
|
||||
|
||||
var homeMega = ActionGameManager.CurrentSector.HomeZones.Keys
|
||||
.FirstOrDefault(m => ActionGameManager.CurrentSector.HomeZones[m] == zone);
|
||||
if (homeMega != null)
|
||||
{
|
||||
var backgroundInstance = IconBackgroundPrototype.Instantiate<MeshRenderer>();
|
||||
var iconInstance = IconPrototype.Instantiate<MeshRenderer>();
|
||||
|
||||
backgroundInstance.material.SetColor("_Color", homeMega.SecondaryColor.ToColor());
|
||||
iconInstance.material.mainTexture = HomeIcon;
|
||||
iconInstance.material.SetColor("_Color", homeMega.PrimaryColor.ToColor());
|
||||
|
||||
var backgroundTransform = backgroundInstance.transform;
|
||||
var iconTransform = iconInstance.transform;
|
||||
|
||||
backgroundTransform.SetParent(zoneInstanceTransform);
|
||||
iconTransform.SetParent(zoneInstanceTransform);
|
||||
|
||||
backgroundTransform.localScale = Vector3.one * IconBackgroundSize;
|
||||
iconTransform.localScale = Vector3.one;
|
||||
|
||||
backgroundTransform.localPosition = new Vector3(-linkDirection.x * IconDistance, -linkDirection.y * IconDistance, .5f);
|
||||
iconTransform.localPosition = new Vector3(-linkDirection.x * IconDistance, -linkDirection.y * IconDistance);
|
||||
}
|
||||
|
||||
var bossMega = ActionGameManager.CurrentSector.BossZones.Keys
|
||||
.FirstOrDefault(m => ActionGameManager.CurrentSector.BossZones[m] == zone);
|
||||
if (bossMega != null)
|
||||
{
|
||||
var backgroundInstance = IconBackgroundPrototype.Instantiate<MeshRenderer>();
|
||||
var iconInstance = IconPrototype.Instantiate<MeshRenderer>();
|
||||
|
||||
backgroundInstance.material.SetColor("_Color", bossMega.SecondaryColor.ToColor());
|
||||
iconInstance.material.mainTexture = BossIcon;
|
||||
iconInstance.material.SetColor("_Color", bossMega.PrimaryColor.ToColor());
|
||||
|
||||
var backgroundTransform = backgroundInstance.transform;
|
||||
var iconTransform = iconInstance.transform;
|
||||
|
||||
backgroundTransform.SetParent(zoneInstanceTransform);
|
||||
iconTransform.SetParent(zoneInstanceTransform);
|
||||
|
||||
backgroundTransform.localScale = Vector3.one * IconBackgroundSize;
|
||||
iconTransform.localScale = Vector3.one;
|
||||
|
||||
if (homeMega != null)
|
||||
{
|
||||
backgroundTransform.localPosition = new Vector3(linkDirection.x * IconDistance, linkDirection.y * IconDistance, .5f);
|
||||
iconTransform.localPosition = new Vector3(linkDirection.x * IconDistance, linkDirection.y * IconDistance);
|
||||
}
|
||||
else
|
||||
{
|
||||
backgroundTransform.localPosition = new Vector3(-linkDirection.x * IconDistance, -linkDirection.y * IconDistance, .5f);
|
||||
iconTransform.localPosition = new Vector3(-linkDirection.x * IconDistance, -linkDirection.y * IconDistance);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Render Influence Textures
|
||||
foreach (var mega in ActionGameManager.CurrentSector.Factions)
|
||||
{
|
||||
var influenceRenderer = InfluenceRendererPrototype.Instantiate<MeshRenderer>();
|
||||
foreach (var zone in ActionGameManager.CurrentSector.Zones)
|
||||
{
|
||||
var instance = zoneInstances[zone];
|
||||
var influence = 0f;
|
||||
if (zone.Factions.Length > 0)
|
||||
{
|
||||
if (zone.Factions.Contains(mega))
|
||||
{
|
||||
influence = 10;
|
||||
if (zone.Owner != mega)
|
||||
influence *= .5f;
|
||||
}
|
||||
else influence = -10;
|
||||
}
|
||||
instance.Influence.material.SetFloat("_Depth", influence);
|
||||
}
|
||||
|
||||
InfluenceCamera.targetTexture = _factionMaterials[mega].influence;
|
||||
InfluenceCamera.Render();
|
||||
|
||||
influenceRenderer.material.mainTexture = _factionMaterials[mega].influence;
|
||||
influenceRenderer.material.SetColor("_Color1", mega.PrimaryColor.ToColor());
|
||||
influenceRenderer.material.SetColor("_Color2", mega.SecondaryColor.ToColor());
|
||||
influenceRenderer.material.SetFloat("_FillTilt", Random.value * PI);
|
||||
}
|
||||
|
||||
SectorRenderer.material.SetFloat("CloudAmplitude", ActionGameManager.CurrentSector.Settings.CloudAmplitude);
|
||||
SectorRenderer.material.SetFloat("CloudExponent", ActionGameManager.CurrentSector.Settings.CloudExponent);
|
||||
SectorRenderer.material.SetFloat("NoisePosition", ActionGameManager.CurrentSector.Settings.NoisePosition);
|
||||
|
|
@ -222,4 +278,35 @@ public class SectorMap : MonoBehaviour
|
|||
SectorRenderer.material.SetFloat("NoiseLacunarity", ActionGameManager.CurrentSector.Settings.NoiseLacunarity);
|
||||
SectorRenderer.material.SetFloat("NoiseFrequency", ActionGameManager.CurrentSector.Settings.NoiseFrequency);
|
||||
}
|
||||
|
||||
private void RenderInfluence()
|
||||
{
|
||||
// Render Influence Textures
|
||||
foreach (var mega in ActionGameManager.CurrentSector.Factions)
|
||||
{
|
||||
foreach (var zone in ActionGameManager.CurrentSector.Zones)
|
||||
{
|
||||
if(_zoneInstances.ContainsKey(zone))
|
||||
{
|
||||
var instance = _zoneInstances[zone];
|
||||
var influence = 0f;
|
||||
if (zone.Factions.Length > 0)
|
||||
{
|
||||
if (zone.Factions.Contains(mega))
|
||||
{
|
||||
influence = 10;
|
||||
if (zone.Owner != mega)
|
||||
influence *= .5f;
|
||||
}
|
||||
else influence = -10;
|
||||
}
|
||||
|
||||
instance.Influence.material.SetFloat("_Depth", influence);
|
||||
}
|
||||
}
|
||||
|
||||
InfluenceCamera.targetTexture = _factionMaterials[mega].influence;
|
||||
InfluenceCamera.Render();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
using UnityEngine.UI;
|
||||
|
|
@ -9,12 +10,22 @@ using float2 = Unity.Mathematics.float2;
|
|||
|
||||
public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IScrollHandler
|
||||
{
|
||||
public Canvas Canvas;
|
||||
public SectorMap Map;
|
||||
public ActionGameManager GameManager;
|
||||
public Camera MainCamera;
|
||||
public Camera SectorCamera;
|
||||
public MeshRenderer SectorBackgroundRenderer;
|
||||
public float ZoomSpeed;
|
||||
public float MinViewSize = .1f;
|
||||
public float MaxViewSize = 2;
|
||||
public Button PathAnimationButton;
|
||||
public float PathAnimationDamping;
|
||||
public float PathAnimationDuration;
|
||||
public float PathAnimationDurationPadding = 1.1f;
|
||||
public GameObject LegendPanel;
|
||||
public float LinkAnimationDuration;
|
||||
public float IconAnimationDuration;
|
||||
|
||||
private float2 _startMousePosition;
|
||||
private float2 _startMapPosition;
|
||||
|
|
@ -40,6 +51,45 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
|
|||
_sectorBackgroundDepth = _sectorBackgroundTransform.position.z;
|
||||
_sectorCameraTransform = SectorCamera.transform;
|
||||
_sectorCameraDepth = _sectorCameraTransform.position.z;
|
||||
PathAnimationButton.onClick.AddListener(() =>
|
||||
{
|
||||
Map.StartCoroutine(AnimatePath());
|
||||
});
|
||||
}
|
||||
|
||||
private IEnumerator AnimatePath()
|
||||
{
|
||||
var pathZones = ActionGameManager.CurrentSector.ExitPath;
|
||||
LegendPanel.SetActive(false);
|
||||
PathAnimationButton.gameObject.SetActive(false);
|
||||
foreach (var zones in ActionGameManager.CurrentSector.Zones
|
||||
.GroupBy(z=>z.Distance[ActionGameManager.CurrentSector.Entrance])
|
||||
.OrderBy(g=>g.Key))
|
||||
{
|
||||
Map.QueueZoneReveal(zones);
|
||||
}
|
||||
|
||||
var revealCount = ActionGameManager.CurrentSector.Entrance.Distance[ActionGameManager.CurrentSector.Exit];
|
||||
Map.StartReveal(
|
||||
PathAnimationDuration / revealCount * (LinkAnimationDuration / (IconAnimationDuration + LinkAnimationDuration)),
|
||||
PathAnimationDuration / revealCount * (IconAnimationDuration / (IconAnimationDuration + LinkAnimationDuration)));
|
||||
MainCamera.enabled = false;
|
||||
SectorCamera.targetTexture = null;
|
||||
Canvas.gameObject.SetActive(false);
|
||||
SectorCamera.gameObject.SetActive(true);
|
||||
|
||||
var pathAnimationLerp = 0f;
|
||||
while (pathAnimationLerp < 1)
|
||||
{
|
||||
var currentTargetZone = pathZones[(int) (pathZones.Length * pathAnimationLerp)];
|
||||
_position = lerp(_position, currentTargetZone.Position, PathAnimationDamping);
|
||||
pathAnimationLerp += Time.deltaTime / (PathAnimationDuration * PathAnimationDurationPadding);
|
||||
UpdateCamera();
|
||||
yield return null;
|
||||
}
|
||||
|
||||
LegendPanel.SetActive(true);
|
||||
PathAnimationButton.gameObject.SetActive(true);
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
|
|
@ -48,6 +98,8 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
|
|||
SectorCamera.gameObject.SetActive(true);
|
||||
_position = GameManager.Zone.SectorZone.Position;
|
||||
_viewSize = .25f;
|
||||
|
||||
Map.StartReveal(LinkAnimationDuration, IconAnimationDuration);
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
|
|
@ -76,6 +128,11 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
|
|||
_outputImage.material.SetTexture("_DetailTex", _outputTexture);
|
||||
}
|
||||
|
||||
UpdateCamera();
|
||||
}
|
||||
|
||||
void UpdateCamera()
|
||||
{
|
||||
var halfSize = _viewSize / 2;
|
||||
var bounds = float4(
|
||||
_position.x - _aspectRatio * halfSize,
|
||||
|
|
@ -34,6 +34,7 @@ public class TradeMenu : MonoBehaviour
|
|||
|
||||
private void OnEnable()
|
||||
{
|
||||
if (GameManager.DockedEntity == null) return;
|
||||
_targetCargo = GameManager.DockingBay;
|
||||
TargetCargoLabel.text = "Docking Bay";
|
||||
Properties.Context = GameManager.ItemManager;
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public class VolumeSampling : MonoBehaviour
|
|||
|
||||
// Shader needs to know the position and scale of cameras used to render input textures
|
||||
if(GridTransform != null)
|
||||
_volMaterial.SetVector("_GridTransform", new Vector4(GridTransform.position.x,GridTransform.position.z,GridTransform.localScale.x*4));
|
||||
_volMaterial.SetVector("_GridTransform", new Vector4(GridTransform.position.x,GridTransform.position.z,GridTransform.localScale.x));
|
||||
|
||||
Graphics.Blit( source, destination, _volMaterial, 0 );
|
||||
}
|
||||
|
|
@ -20,7 +20,6 @@ public class ZoneRenderer : MonoBehaviour
|
|||
{
|
||||
public Transform WormholePrefab;
|
||||
public float EntityFadeTime;
|
||||
public Transform EffectManagerParent;
|
||||
public Transform FogCameraParent;
|
||||
public GameSettings Settings;
|
||||
public Transform ZoneRoot;
|
||||
|
|
@ -36,6 +35,8 @@ public class ZoneRenderer : MonoBehaviour
|
|||
public int AsteroidSpritesheetWidth = 4;
|
||||
public int AsteroidSpritesheetHeight = 4;
|
||||
public LODHandler LODHandler;
|
||||
public Slime SlimeRenderer;
|
||||
public Camera SlimeGravityCamera;
|
||||
|
||||
[Header("Tour")]
|
||||
public bool Tour;
|
||||
|
|
@ -88,6 +89,7 @@ public class ZoneRenderer : MonoBehaviour
|
|||
get => _perspectiveEntity;
|
||||
set
|
||||
{
|
||||
//if (_perspectiveEntity == value) return;
|
||||
_perspectiveEntity = value;
|
||||
_perspectiveSubscriptions[0]?.Dispose();
|
||||
_perspectiveSubscriptions[1]?.Dispose();
|
||||
|
|
@ -112,8 +114,6 @@ public class ZoneRenderer : MonoBehaviour
|
|||
}
|
||||
}
|
||||
|
||||
public float GameTime { get; set; }
|
||||
|
||||
public float ViewDistance
|
||||
{
|
||||
set
|
||||
|
|
@ -139,7 +139,6 @@ public class ZoneRenderer : MonoBehaviour
|
|||
|
||||
void Start()
|
||||
{
|
||||
EntityInstance.EffectManagerParent = EffectManagerParent;
|
||||
ViewDistance = Settings.DefaultViewDistance;
|
||||
MinimapDistance = Settings.MinimapZoomLevels[Settings.DefaultMinimapZoom];
|
||||
|
||||
|
|
@ -153,6 +152,8 @@ public class ZoneRenderer : MonoBehaviour
|
|||
_maxDepth = 0;
|
||||
Zone = zone;
|
||||
SectorBrushes.localScale = zone.Pack.Radius * 2 * Vector3.one;
|
||||
SlimeGravityCamera.orthographicSize = zone.Pack.Radius;
|
||||
SlimeRenderer.ZoneRadius = zone.Pack.Radius;
|
||||
foreach(var p in zone.Planets.Values)
|
||||
LoadPlanet(p);
|
||||
|
||||
|
|
@ -440,7 +441,7 @@ public class ZoneRenderer : MonoBehaviour
|
|||
planet.Value.Body.transform.localPosition = new Vector3(0, Zone.GetHeight(p) + planetInstance.BodyRadius.Value * 2, 0);
|
||||
if(planet.Value is GasGiantObject gasGiantObject)
|
||||
{
|
||||
gasGiantObject.GravityWaves.material.SetFloat("_Phase", GameTime * ((GasGiant) Zone.PlanetInstances[planet.Key]).GravityWavesSpeed.Value);
|
||||
gasGiantObject.GravityWaves.material.SetFloat("_Phase", Zone.Time * ((GasGiant) Zone.PlanetInstances[planet.Key]).GravityWavesSpeed.Value);
|
||||
if(!(planet.Value is SunObject))
|
||||
{
|
||||
var toParent = normalize(Zone.GetOrbitPosition(Zone.Orbits[planetInstance.BodyData.Orbit].Data.Parent) - p);
|
||||
8
Assets/Shaders/Compute/Slime.meta
Normal file
8
Assets/Shaders/Compute/Slime.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c4f8746e2c2a794408521ecd19539f1c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
54
Assets/Shaders/Compute/Slime/RenderAccumulation.shader
Normal file
54
Assets/Shaders/Compute/Slime/RenderAccumulation.shader
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
Shader "Unlit/RenderAccumulation"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
_MainTex ("Texture", 2D) = "white" {}
|
||||
}
|
||||
SubShader
|
||||
{
|
||||
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" "PreviewType"="Plane" }
|
||||
Blend One One
|
||||
ColorMask RGB
|
||||
Cull Off Lighting Off ZWrite Off
|
||||
|
||||
Pass
|
||||
{
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
struct appdata
|
||||
{
|
||||
float4 vertex : POSITION;
|
||||
float2 uv : TEXCOORD0;
|
||||
};
|
||||
|
||||
struct v2f
|
||||
{
|
||||
float2 uv : TEXCOORD0;
|
||||
float4 vertex : SV_POSITION;
|
||||
};
|
||||
|
||||
sampler2D _MainTex;
|
||||
float4 _MainTex_ST;
|
||||
|
||||
v2f vert (appdata v)
|
||||
{
|
||||
v2f o;
|
||||
o.vertex = UnityObjectToClipPos(v.vertex);
|
||||
o.uv = TRANSFORM_TEX(v.uv, _MainTex);
|
||||
return o;
|
||||
}
|
||||
|
||||
fixed4 frag (v2f i) : SV_Target
|
||||
{
|
||||
// sample the texture
|
||||
float x = tex2D(_MainTex, i.uv).r;
|
||||
return float4(x,x,x,1);
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
||||
10
Assets/Shaders/Compute/Slime/RenderAccumulation.shader.meta
Normal file
10
Assets/Shaders/Compute/Slime/RenderAccumulation.shader.meta
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1775d5166e85428488b54c358301ec7b
|
||||
ShaderImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
97
Assets/Shaders/Compute/Slime/Slime Accumulation.mat
Normal file
97
Assets/Shaders/Compute/Slime/Slime Accumulation.mat
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Slime Accumulation
|
||||
m_Shader: {fileID: 4800000, guid: 1775d5166e85428488b54c358301ec7b, type: 3}
|
||||
m_ShaderKeywords:
|
||||
m_LightmapFlags: 0
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- _BlendOp: 0
|
||||
- _BumpScale: 1
|
||||
- _CameraFadingEnabled: 0
|
||||
- _CameraFarFadeDistance: 2
|
||||
- _CameraNearFadeDistance: 1
|
||||
- _ColorMode: 0
|
||||
- _Cull: 2
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DistortionBlend: 0.5
|
||||
- _DistortionEnabled: 0
|
||||
- _DistortionStrength: 1
|
||||
- _DistortionStrengthScaled: 0
|
||||
- _DstBlend: 0
|
||||
- _EmissionEnabled: 0
|
||||
- _FlipbookMode: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.5
|
||||
- _GlossyReflections: 1
|
||||
- _LightingEnabled: 0
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SoftParticlesEnabled: 0
|
||||
- _SoftParticlesFarFadeDistance: 1
|
||||
- _SoftParticlesNearFadeDistance: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _ColorAddSubDiff: {r: 0, g: 0, b: 0, a: 0}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_BuildTextureStacks: []
|
||||
8
Assets/Shaders/Compute/Slime/Slime Accumulation.mat.meta
Normal file
8
Assets/Shaders/Compute/Slime/Slime Accumulation.mat.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 817815ac1f000054ab738bb243cd7dba
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
301
Assets/Shaders/Compute/Slime/Slime.compute
Normal file
301
Assets/Shaders/Compute/Slime/Slime.compute
Normal file
|
|
@ -0,0 +1,301 @@
|
|||
#include "SlimeVertex.cginc"
|
||||
#include "UnityCG.cginc"
|
||||
#define NUM_THREAD_X 64
|
||||
|
||||
// Each #kernel tells which function to compile; you can have many kernels
|
||||
#pragma kernel UpdateAgents
|
||||
#pragma kernel Diffuse
|
||||
#pragma kernel CreateAgentParticles
|
||||
#pragma kernel CreateParticleGeometry
|
||||
|
||||
// Struct for storing the current state of each simulated slime agent
|
||||
struct Agent
|
||||
{
|
||||
float2 position;
|
||||
float angle;
|
||||
};
|
||||
|
||||
struct Particle
|
||||
{
|
||||
float3 start;
|
||||
float3 middle;
|
||||
float3 end;
|
||||
};
|
||||
|
||||
// Accumulation Buffer
|
||||
RWTexture2D<float> accumulation;
|
||||
|
||||
// Output of the diffusion kernel
|
||||
RWTexture2D<float> diffusedAccumulation;
|
||||
|
||||
// Agent data buffer
|
||||
RWStructuredBuffer<Agent> agents;
|
||||
|
||||
// Use this texture to sample level terrain shape for shenanigans
|
||||
Texture2D Heightmap;
|
||||
SamplerState samplerHeightmap;
|
||||
|
||||
int randomOffset;
|
||||
int numAgents;
|
||||
float speed;
|
||||
//float deltaTime;
|
||||
int textureWidth;
|
||||
float zoneRadius;
|
||||
float deposition;
|
||||
float diffusion;
|
||||
float decay;
|
||||
float sensorDistance;
|
||||
float sensorSpread;
|
||||
int sensorSize;
|
||||
float randomSteering;
|
||||
float turnSpeed;
|
||||
float drive;
|
||||
|
||||
// Hash function from H. Schechter & R. Bridson, goo.gl/RXiKaH
|
||||
inline uint hash(uint s)
|
||||
{
|
||||
s ^= 2747636419u;
|
||||
s *= 2654435769u;
|
||||
s ^= s >> 16;
|
||||
s *= 2654435769u;
|
||||
s ^= s >> 16;
|
||||
s *= 2654435769u;
|
||||
return s;
|
||||
}
|
||||
|
||||
inline float random(uint seed)
|
||||
{
|
||||
return float(hash(seed)) / 4294967295.0; // 2^32-1
|
||||
}
|
||||
|
||||
inline float2 uvToPos(float2 uv)
|
||||
{
|
||||
return (uv - float2(.5, .5)) * (zoneRadius * 2);
|
||||
}
|
||||
|
||||
inline float2 posToUv(float2 pos)
|
||||
{
|
||||
return pos / (zoneRadius * 2) + float2(.5, .5);
|
||||
}
|
||||
|
||||
float sense(float2 position, float angle, float directionSign)
|
||||
{
|
||||
float sensorAngle = angle + directionSign * sensorSpread;
|
||||
float2 sensorDir = float2(cos(sensorAngle), sin(sensorAngle));
|
||||
int2 sensorCenter = position + sensorDir * sensorDistance;
|
||||
|
||||
float sum = 0;
|
||||
for(int x = -sensorSize; x <= sensorSize; x++)
|
||||
{
|
||||
for(int y = -sensorSize; y <= sensorSize; y++)
|
||||
{
|
||||
int2 sample = sensorCenter + int2(x, y);
|
||||
if(sample.x >= 0 && sample.x < textureWidth && sample.y >= 0 && sample.y < textureWidth)
|
||||
{
|
||||
sum += accumulation[sample];
|
||||
}
|
||||
}
|
||||
}
|
||||
return sum;
|
||||
}
|
||||
|
||||
inline float unlerp(float x, float min, float max)
|
||||
{
|
||||
return (x - min) / (max - min);
|
||||
}
|
||||
|
||||
[numthreads(NUM_THREAD_X,1,1)]
|
||||
void UpdateAgents (uint3 id : SV_DispatchThreadID)
|
||||
{
|
||||
if (id.x >= numAgents) return;
|
||||
|
||||
Agent agent = agents[id.x];
|
||||
|
||||
// Move Agents based on direction and speed
|
||||
float2 direction = float2(cos(agent.angle), sin(agent.angle));
|
||||
agent.position += direction * speed;
|
||||
|
||||
float r = random(id.x + randomOffset);
|
||||
|
||||
// Clamp position within bounds and randomize direction
|
||||
if(dot(agent.position, agent.position) > zoneRadius * zoneRadius || isnan(agent.position.x))
|
||||
{
|
||||
agent.position = normalize(agent.position) * zoneRadius;
|
||||
//agent.position = float2(0,0);
|
||||
agent.angle = r * UNITY_TWO_PI;
|
||||
}
|
||||
|
||||
// if(isnan(agent.position.x))
|
||||
// {
|
||||
// agent.position = float2(0,0);
|
||||
// agent.angle = r * UNITY_TWO_PI;
|
||||
// }
|
||||
|
||||
float2 texPos = posToUv(agent.position) * textureWidth;
|
||||
|
||||
// Acquire sensory data
|
||||
float forwardSensor = sense(texPos, agent.angle, 0);
|
||||
float leftSensor = sense(texPos, agent.angle, -1);
|
||||
float rightSensor = sense(texPos, agent.angle, 1);
|
||||
|
||||
// Determine the range of the sensor inputs
|
||||
float minSensor = min(min(leftSensor, rightSensor), forwardSensor);
|
||||
float maxSensor = max(max(max(leftSensor, rightSensor), forwardSensor), .01);
|
||||
float range = min(maxSensor - minSensor, .01);
|
||||
|
||||
// Normalize sensor inputs
|
||||
forwardSensor = unlerp(forwardSensor, minSensor, maxSensor);
|
||||
leftSensor = unlerp(leftSensor, minSensor, maxSensor);
|
||||
rightSensor = unlerp(rightSensor, minSensor, maxSensor);
|
||||
|
||||
// Which direction it wants to turn in
|
||||
float desire = leftSensor - rightSensor;
|
||||
|
||||
// Strength of its directional preference
|
||||
float motivation = pow(range / maxSensor, 1 / drive);
|
||||
|
||||
agent.angle += turnSpeed * lerp(r * 2 - 1, desire, motivation);
|
||||
|
||||
agents[id.x] = agent;
|
||||
accumulation[int2(texPos)] += deposition;
|
||||
}
|
||||
|
||||
[numthreads(8,8,1)]
|
||||
void Diffuse (uint3 id : SV_DispatchThreadID)
|
||||
{
|
||||
if(id.x >= textureWidth || id.y >= textureWidth) return;
|
||||
|
||||
float previous = accumulation[id.xy];
|
||||
|
||||
float sum = 0;
|
||||
for(int x = -1; x <= 1; x++)
|
||||
{
|
||||
for(int y=-1; y <= 1; y++)
|
||||
{
|
||||
int2 sample = int2(id.x+x, id.y+y);
|
||||
if(sample.x >= 0 && sample.x < textureWidth && sample.y >= 0 && sample.y < textureWidth)
|
||||
{
|
||||
sum += accumulation[sample];
|
||||
}
|
||||
}
|
||||
}
|
||||
float average = sum / 9;
|
||||
|
||||
diffusedAccumulation[id.xy] = lerp(previous, average, diffusion) * decay;
|
||||
}
|
||||
|
||||
// Buffer containing the leading position of the agent particle
|
||||
RWStructuredBuffer<Particle> particles;
|
||||
|
||||
// Output buffer for particle trail geometry
|
||||
RWStructuredBuffer<Vertex> vertexBuffer;
|
||||
|
||||
// Perlin noise parameters
|
||||
float noiseAmplitude;
|
||||
float time;
|
||||
float heightRange;
|
||||
float heightOffset;
|
||||
float trailDamping;
|
||||
int particleCount;
|
||||
|
||||
#define HASHSCALE 0.1031
|
||||
float hashp(float p)
|
||||
{
|
||||
float3 p3 = frac(p.xxx * HASHSCALE);
|
||||
p3 += dot(p3, p3.yzx + 19.19);
|
||||
return frac((p3.x + p3.y) * p3.z);
|
||||
}
|
||||
|
||||
float fade(float t) { return t*t*t*(t*(6.*t-15.)+10.); }
|
||||
|
||||
float grad(float hash, float p)
|
||||
{
|
||||
int i = int(1e4*hash);
|
||||
return (i & 1) == 0 ? p : -p;
|
||||
}
|
||||
|
||||
float perlinNoise1D(float p)
|
||||
{
|
||||
float pi = floor(p), pf = p - pi, w = fade(pf);
|
||||
return lerp(grad(hashp(pi), pf), grad(hashp(pi + 1.0), pf - 1.0), w) * 2.0;
|
||||
}
|
||||
|
||||
[numthreads(NUM_THREAD_X,1,1)]
|
||||
void CreateAgentParticles (uint3 id : SV_DispatchThreadID)
|
||||
{
|
||||
Agent agent = agents[id.x];
|
||||
float sequence = (float)id.x/particleCount;
|
||||
float height = Heightmap.SampleLevel(samplerHeightmap, posToUv(agent.position), 0);
|
||||
float particleHeight = -height + random(id.x) * heightRange + heightOffset;
|
||||
Particle particle = particles[id.x];
|
||||
particle.end = lerp(particle.end, particle.middle, trailDamping);
|
||||
particle.middle = lerp(particle.middle, particle.start, trailDamping);
|
||||
particle.start = lerp(particle.start, float3(
|
||||
agent.position.x + perlinNoise1D(id.x*3 + time + sequence) * noiseAmplitude,
|
||||
particleHeight + perlinNoise1D(id.x*3 + 1 + time + sequence) * noiseAmplitude,
|
||||
agent.position.y + perlinNoise1D(id.x*3 + 2 + time + sequence) * noiseAmplitude), trailDamping);
|
||||
particles[id.x] = particle;
|
||||
}
|
||||
|
||||
// https://catlikecoding.com/unity/tutorials/curves-and-splines/
|
||||
inline float3 QuadraticSplinePosition(float3 p0, float3 p1, float3 p2, float t)
|
||||
{
|
||||
//return lerp(lerp(p0,p1,t),lerp(p1,p2,t),t);
|
||||
float oneMinusT = 1 - t;
|
||||
return
|
||||
oneMinusT * oneMinusT * p0 +
|
||||
2 * oneMinusT * t * p1 +
|
||||
t * t * p2;
|
||||
}
|
||||
|
||||
inline float3 QuadraticSplineDerivative (float3 p0, float3 p1, float3 p2, float t) {
|
||||
return
|
||||
2 * (1 - t) * (p1 - p0) +
|
||||
2 * t * (p2 - p1);
|
||||
}
|
||||
|
||||
int trailPoints;
|
||||
float trailStartWidth;
|
||||
float trailEndWidth;
|
||||
float3 cameraPos;
|
||||
|
||||
inline float3 calcToCameraDir(float3 pos)
|
||||
{
|
||||
return normalize(cameraPos - pos);
|
||||
}
|
||||
|
||||
[numthreads(NUM_THREAD_X,1,1)]
|
||||
void CreateParticleGeometry (uint3 id : SV_DispatchThreadID)
|
||||
{
|
||||
Vertex v0 = GetDefaultVertex();
|
||||
Vertex v1 = GetDefaultVertex();
|
||||
|
||||
int idx = id.x;
|
||||
int particleIndex = id.x / trailPoints;
|
||||
int trailIndex = id.x % trailPoints;
|
||||
float trailLerp = (float) trailIndex / trailPoints;
|
||||
|
||||
Particle particle = particles[particleIndex];
|
||||
|
||||
//float3 pos = float3(particle, 0, trailIndex);
|
||||
//float3 dir = float3(0,0,1);
|
||||
//float3 pos = lerp(particle.start, particle.end, trailLerp);
|
||||
//float3 dir = normalize(particle.end-particle.start);
|
||||
float3 pos = QuadraticSplinePosition(particle.start, particle.middle, particle.end, trailLerp);
|
||||
float3 dir = QuadraticSplineDerivative(particle.start, particle.middle, particle.end, trailLerp);
|
||||
|
||||
float width = lerp(trailStartWidth, trailEndWidth, trailLerp);
|
||||
|
||||
float3 toCameraDir = calcToCameraDir(pos);
|
||||
float3 right = normalize(cross(dir, toCameraDir)) * width * 0.5f;
|
||||
|
||||
v0.pos = pos - right;
|
||||
v0.uv = float2(trailLerp, 0);
|
||||
|
||||
v1.pos = pos + right;
|
||||
v1.uv = float2(trailLerp, 1);
|
||||
|
||||
uint vId = idx * 2;
|
||||
vertexBuffer[vId] = v0;
|
||||
vertexBuffer[vId+1] = v1;
|
||||
}
|
||||
9
Assets/Shaders/Compute/Slime/Slime.compute.meta
Normal file
9
Assets/Shaders/Compute/Slime/Slime.compute.meta
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 33eea2339ec4dc143b0e192a0b7f0a33
|
||||
ComputeShaderImporter:
|
||||
externalObjects: {}
|
||||
currentAPIMask: 4
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
229
Assets/Shaders/Compute/Slime/Slime.cs
Normal file
229
Assets/Shaders/Compute/Slime/Slime.cs
Normal file
|
|
@ -0,0 +1,229 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using MessagePack;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Experimental.Rendering;
|
||||
using UnityEngine.Rendering;
|
||||
using Random = UnityEngine.Random;
|
||||
using static Unity.Mathematics.math;
|
||||
|
||||
public class Slime : MonoBehaviour
|
||||
{
|
||||
#region variables
|
||||
|
||||
[Header("Scene Links")]
|
||||
public Camera TargetCamera;
|
||||
|
||||
[Header("Materials")]
|
||||
public ComputeShader SlimeCompute;
|
||||
public Material AccumulationMaterial;
|
||||
public Material ParticleMaterial;
|
||||
public RenderTexture GravityTexture;
|
||||
|
||||
[Header("Performance")]
|
||||
public int TextureSize = 1024;
|
||||
public float ZoneRadius = 512;
|
||||
public int AgentCount = 524288;
|
||||
public int ParticleCount = 65536;
|
||||
public int TrailPoints = 8;
|
||||
|
||||
[Header("Parameters")]
|
||||
public SlimeSettings SlimeSettings;
|
||||
public float ZoneCeiling;
|
||||
public float ZoneFloor;
|
||||
public float NoiseFrequency = 1;
|
||||
public float NoiseAmplitude = 5;
|
||||
public float ParticleHeightRange;
|
||||
public float ParticleHeightOffset;
|
||||
public float TrailStartWidth = .5f;
|
||||
public float TrailEndWidth = .1f;
|
||||
public float TrailDamping = .05f;
|
||||
|
||||
private const int GROUP_SIZE = 64;
|
||||
private int _updateAgentsKernel;
|
||||
private int _diffuseKernel;
|
||||
private int _particleKernel;
|
||||
private int _geometryKernel;
|
||||
|
||||
private int IndexBufferSize => ParticleCount * 6 * (TrailPoints - 1);
|
||||
|
||||
#endregion
|
||||
|
||||
#region buffers
|
||||
|
||||
private ComputeBuffer _agentsBuffer;
|
||||
private RenderTexture _accumulationTexture;
|
||||
private RenderTexture _previousAccumulationTexture;
|
||||
|
||||
private ComputeBuffer _particlesBuffer;
|
||||
|
||||
private ComputeBuffer _indexBuffer;
|
||||
private ComputeBuffer _vertexBuffer;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Structs
|
||||
|
||||
struct Agent
|
||||
{
|
||||
public Vector2 Position;
|
||||
public float Angle;
|
||||
}
|
||||
|
||||
struct Particle
|
||||
{
|
||||
public Vector3 Start;
|
||||
public Vector3 Middle;
|
||||
public Vector3 End;
|
||||
}
|
||||
|
||||
struct Vertex
|
||||
{
|
||||
public Vector3 Position;
|
||||
public Vector2 UV;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
void Start()
|
||||
{
|
||||
_updateAgentsKernel = SlimeCompute.FindKernel("UpdateAgents");
|
||||
_diffuseKernel = SlimeCompute.FindKernel("Diffuse");
|
||||
_particleKernel = SlimeCompute.FindKernel("CreateAgentParticles");
|
||||
_geometryKernel = SlimeCompute.FindKernel("CreateParticleGeometry");
|
||||
|
||||
_accumulationTexture = new RenderTexture(TextureSize, TextureSize, 1, RenderTextureFormat.RFloat);
|
||||
_accumulationTexture.enableRandomWrite = true;
|
||||
_previousAccumulationTexture = new RenderTexture(TextureSize, TextureSize, 1, RenderTextureFormat.RFloat);
|
||||
_previousAccumulationTexture.enableRandomWrite = true;
|
||||
AccumulationMaterial.SetTexture("_MainTex", _accumulationTexture);
|
||||
|
||||
_agentsBuffer = new ComputeBuffer(AgentCount, Marshal.SizeOf(typeof(Agent)));
|
||||
var agents = new Agent[AgentCount];
|
||||
for (var i = 0; i < agents.Length; i++)
|
||||
{
|
||||
agents[i] = new Agent
|
||||
{
|
||||
Position = Random.insideUnitCircle * ZoneRadius,
|
||||
Angle = Random.value * Mathf.PI * 2
|
||||
};
|
||||
}
|
||||
_agentsBuffer.SetData(agents);
|
||||
|
||||
_particlesBuffer = new ComputeBuffer(ParticleCount, Marshal.SizeOf(typeof(Particle)));
|
||||
|
||||
_vertexBuffer = new ComputeBuffer(ParticleCount * 2 * TrailPoints, Marshal.SizeOf(typeof(Vertex)));
|
||||
|
||||
var indexData = new int[IndexBufferSize];
|
||||
var index = 0;
|
||||
for (int iTrail = 0; iTrail < ParticleCount; iTrail++)
|
||||
{
|
||||
var trailOffset = iTrail * TrailPoints * 2;
|
||||
for (int iTrailPoint = 0; iTrailPoint < TrailPoints - 1; iTrailPoint++)
|
||||
{
|
||||
var offset = trailOffset + iTrailPoint * 2;
|
||||
indexData[index++] = 0 + offset;
|
||||
indexData[index++] = 1 + offset;
|
||||
indexData[index++] = 2 + offset;
|
||||
indexData[index++] = 2 + offset;
|
||||
indexData[index++] = 1 + offset;
|
||||
indexData[index++] = 3 + offset;
|
||||
}
|
||||
}
|
||||
|
||||
_indexBuffer = new ComputeBuffer(indexData.Length, Marshal.SizeOf(typeof(uint))); // 1 trail point to 2 triangles (6 vertices)
|
||||
_indexBuffer.SetData(indexData);
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
SlimeCompute.SetInt("randomOffset", Random.Range(0,65536));
|
||||
SlimeCompute.SetInt("textureWidth", TextureSize);
|
||||
SlimeCompute.SetInt("numAgents", AgentCount);
|
||||
SlimeCompute.SetFloat("zoneRadius", ZoneRadius);
|
||||
SlimeCompute.SetFloat("deposition", SlimeSettings.Deposition * Time.deltaTime);
|
||||
SlimeCompute.SetFloat("diffusion", SlimeSettings.Diffusion * Time.deltaTime);
|
||||
SlimeCompute.SetFloat("decay", max(1 - SlimeSettings.Decay * Time.deltaTime, 0.01f));
|
||||
SlimeCompute.SetFloat("speed", SlimeSettings.Speed * Time.deltaTime);
|
||||
SlimeCompute.SetFloat("turnSpeed", SlimeSettings.TurnSpeed * Time.deltaTime);
|
||||
SlimeCompute.SetFloat("randomSteering", SlimeSettings.RandomSteering);
|
||||
SlimeCompute.SetFloat("sensorDistance", SlimeSettings.SensorDistance);
|
||||
SlimeCompute.SetFloat("drive", SlimeSettings.Drive);
|
||||
SlimeCompute.SetFloat("sensorSpread", SlimeSettings.SensorSpread * Mathf.PI / 2);
|
||||
SlimeCompute.SetInt("sensorSize", SlimeSettings.SensorSize);
|
||||
|
||||
SlimeCompute.SetBuffer(_updateAgentsKernel, "agents", _agentsBuffer);
|
||||
SlimeCompute.SetTexture(_updateAgentsKernel, "accumulation", _accumulationTexture);
|
||||
SlimeCompute.SetTexture(_updateAgentsKernel, "Heightmap", GravityTexture);
|
||||
|
||||
var numberOfGroups = Mathf.CeilToInt((float)AgentCount / GROUP_SIZE);
|
||||
SlimeCompute.Dispatch(_updateAgentsKernel, numberOfGroups, 1, 1);
|
||||
|
||||
Graphics.Blit(_accumulationTexture, _previousAccumulationTexture);
|
||||
SlimeCompute.SetTexture(_diffuseKernel, "accumulation", _previousAccumulationTexture);
|
||||
SlimeCompute.SetTexture(_diffuseKernel, "diffusedAccumulation", _accumulationTexture);
|
||||
numberOfGroups = Mathf.CeilToInt((float)TextureSize / 8);
|
||||
SlimeCompute.Dispatch(_diffuseKernel, numberOfGroups, numberOfGroups, 1);
|
||||
|
||||
SlimeCompute.SetTexture(_particleKernel, "Heightmap", GravityTexture);
|
||||
SlimeCompute.SetBuffer(_particleKernel, "agents", _agentsBuffer);
|
||||
SlimeCompute.SetBuffer(_particleKernel, "particles", _particlesBuffer);
|
||||
SlimeCompute.SetFloat("time", Time.time * NoiseFrequency);
|
||||
SlimeCompute.SetFloat("noiseAmplitude", NoiseAmplitude);
|
||||
SlimeCompute.SetFloat("heightRange", ParticleHeightRange);
|
||||
SlimeCompute.SetFloat("heightOffset", ParticleHeightOffset);
|
||||
SlimeCompute.SetFloat("trailDamping", TrailDamping);
|
||||
SlimeCompute.SetInt("particleCount", ParticleCount);
|
||||
|
||||
numberOfGroups = ParticleCount / GROUP_SIZE;
|
||||
SlimeCompute.Dispatch(_particleKernel, numberOfGroups, 1, 1);
|
||||
|
||||
SlimeCompute.SetInt("trailPoints", TrailPoints);
|
||||
SlimeCompute.SetFloat("trailStartWidth", TrailStartWidth);
|
||||
SlimeCompute.SetFloat("trailEndWidth", TrailEndWidth);
|
||||
SlimeCompute.SetVector("cameraPos", TargetCamera.transform.position);
|
||||
SlimeCompute.SetBuffer(_geometryKernel, "particles", _particlesBuffer);
|
||||
SlimeCompute.SetBuffer(_geometryKernel, "vertexBuffer", _vertexBuffer);
|
||||
|
||||
numberOfGroups = ParticleCount * TrailPoints / GROUP_SIZE;
|
||||
SlimeCompute.Dispatch(_geometryKernel, numberOfGroups, 1, 1);
|
||||
|
||||
ParticleMaterial.SetBuffer("_IndexBuffer", _indexBuffer);
|
||||
ParticleMaterial.SetBuffer("_VertexBuffer", _vertexBuffer);
|
||||
Graphics.DrawProcedural(
|
||||
ParticleMaterial,
|
||||
new Bounds(Vector3.zero, ZoneRadius * Vector3.one),
|
||||
MeshTopology.Triangles,
|
||||
IndexBufferSize,
|
||||
1,
|
||||
TargetCamera,
|
||||
null,
|
||||
ShadowCastingMode.Off,
|
||||
false,
|
||||
0);
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
_accumulationTexture.Release();
|
||||
_agentsBuffer.Release();
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, MessagePackObject(keyAsPropertyName:true)]
|
||||
public class SlimeSettings
|
||||
{
|
||||
public float Deposition;
|
||||
public float Diffusion;
|
||||
public float Decay;
|
||||
public float TurnSpeed;
|
||||
public float RandomSteering;
|
||||
public float Speed;
|
||||
public float Drive;
|
||||
public float SensorDistance;
|
||||
public float SensorSpread;
|
||||
public int SensorSize;
|
||||
}
|
||||
11
Assets/Shaders/Compute/Slime/Slime.cs.meta
Normal file
11
Assets/Shaders/Compute/Slime/Slime.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8ffec49d55e3429418714ceb048bfeae
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
159
Assets/Shaders/Compute/Slime/Slime.shader
Normal file
159
Assets/Shaders/Compute/Slime/Slime.shader
Normal file
|
|
@ -0,0 +1,159 @@
|
|||
Shader "Aetheria/Stardust (Compute)"
|
||||
{
|
||||
Properties {
|
||||
[HDR] _TintColor("Tint Color", Color) = (0.5,0.5,0.5,0.5)
|
||||
_EmissionGain("Emission Gain", Range(0, 1)) = 0.3
|
||||
_Power("Power", Float) = 2
|
||||
}
|
||||
|
||||
SubShader {
|
||||
Tags { "Queue"="AlphaTest" "RenderType"="TransparentCutout" "IgnoreProjector"="True" }
|
||||
Pass {
|
||||
|
||||
CGPROGRAM
|
||||
#pragma vertex particle_vertex
|
||||
#pragma fragment frag
|
||||
|
||||
#pragma target 5.0
|
||||
#include "UnityCG.cginc"
|
||||
#include "Assets/Shaders/Dither Functions.cginc"
|
||||
|
||||
struct Particle
|
||||
{
|
||||
float3 position;
|
||||
float3 color;
|
||||
float size;
|
||||
};
|
||||
|
||||
StructuredBuffer<Particle> particles;
|
||||
StructuredBuffer<float3> quadPoints;
|
||||
|
||||
float4 _TintColor;
|
||||
float _EmissionGain;
|
||||
float _Power;
|
||||
|
||||
struct v2f
|
||||
{
|
||||
float4 pos : SV_POSITION;
|
||||
float2 uv : TEXCOORD0;
|
||||
float4 screenPos : TEXCOORD1;
|
||||
float4 color : COLOR;
|
||||
};
|
||||
|
||||
//Vertex shader with no inputs
|
||||
//Uses the system values SV_VertexID and SV_InstanceID to read from compute buffers
|
||||
v2f particle_vertex(uint id : SV_VertexID, uint inst : SV_InstanceID)
|
||||
{
|
||||
v2f o;
|
||||
|
||||
//Only transform world pos by view matrix
|
||||
//To Create a billboarding effect
|
||||
float3 worldPosition = particles[inst].position;
|
||||
|
||||
float4 cameraSpacePosition = mul(UNITY_MATRIX_V, float4(worldPosition, 1.0f));
|
||||
|
||||
float3 quadPoint = float3(quadPoints[id].xy, 0.0f) * particles[inst].size;
|
||||
o.pos = mul(UNITY_MATRIX_P, cameraSpacePosition + float4(quadPoint, 0.0f));
|
||||
|
||||
//Shift coordinates for uvs
|
||||
o.uv = quadPoints[id] + 0.5f;
|
||||
|
||||
//transfer color of particle and global tint to vertex
|
||||
o.color = float4(particles[inst].color, 1) * _TintColor;
|
||||
o.screenPos = ComputeScreenPos(o.pos);
|
||||
|
||||
return o;
|
||||
}
|
||||
|
||||
float powerPulse( float x, float power )
|
||||
{
|
||||
x = saturate(abs(x));
|
||||
return pow((x + 1.0f) * (1.0f - x), power);
|
||||
}
|
||||
|
||||
float4 frag(v2f i) : COLOR
|
||||
{
|
||||
float emission = powerPulse(length(i.uv-float2(.5,.5))*2,_Power);
|
||||
float2 screenUV = i.screenPos.xy / i.screenPos.w;
|
||||
ditherClip(screenUV, emission * i.color.a);
|
||||
return i.color * emission * (exp(_EmissionGain * 5.0f));
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
Pass
|
||||
{
|
||||
Name "ShadowCaster"
|
||||
Tags { "LightMode" = "ShadowCaster" }
|
||||
|
||||
CGPROGRAM
|
||||
#pragma vertex particle_vertex
|
||||
#pragma fragment frag
|
||||
|
||||
#pragma target 5.0
|
||||
#include "UnityCG.cginc"
|
||||
#include "Assets/Shaders/Dither Functions.cginc"
|
||||
|
||||
struct Particle
|
||||
{
|
||||
float3 position;
|
||||
float3 color;
|
||||
float size;
|
||||
};
|
||||
|
||||
StructuredBuffer<Particle> particles;
|
||||
StructuredBuffer<float3> quadPoints;
|
||||
|
||||
float4 _TintColor;
|
||||
float _EmissionGain;
|
||||
float _Power;
|
||||
|
||||
struct v2f
|
||||
{
|
||||
float4 pos : SV_POSITION;
|
||||
float2 uv : TEXCOORD0;
|
||||
float4 screenPos : TEXCOORD1;
|
||||
float4 color : COLOR;
|
||||
};
|
||||
|
||||
//Vertex shader with no inputs
|
||||
//Uses the system values SV_VertexID and SV_InstanceID to read from compute buffers
|
||||
v2f particle_vertex(uint id : SV_VertexID, uint inst : SV_InstanceID)
|
||||
{
|
||||
v2f o;
|
||||
|
||||
//Only transform world pos by view matrix
|
||||
//To Create a billboarding effect
|
||||
float3 worldPosition = particles[inst].position;
|
||||
|
||||
float4 cameraSpacePosition = mul(UNITY_MATRIX_V, float4(worldPosition, 1.0f));
|
||||
|
||||
float3 quadPoint = float3(quadPoints[id].xy, 0.0f) * particles[inst].size;
|
||||
o.pos = mul(UNITY_MATRIX_P, cameraSpacePosition + float4(quadPoint, 0.0f));
|
||||
|
||||
//Shift coordinates for uvs
|
||||
o.uv = quadPoints[id] + 0.5f;
|
||||
|
||||
//transfer color of particle and global tint to vertex
|
||||
o.color = float4(particles[inst].color, 1) * _TintColor;
|
||||
o.screenPos = ComputeScreenPos(o.pos);
|
||||
|
||||
return o;
|
||||
}
|
||||
|
||||
float powerPulse( float x, float power )
|
||||
{
|
||||
x = saturate(abs(x));
|
||||
return pow((x + 1.0f) * (1.0f - x), power);
|
||||
}
|
||||
|
||||
float4 frag(v2f i) : COLOR
|
||||
{
|
||||
float emission = powerPulse(length(i.uv-float2(.5,.5))*2,_Power);
|
||||
float2 screenUV = i.screenPos.xy / i.screenPos.w;
|
||||
ditherClip(screenUV, emission * i.color.a);
|
||||
SHADOW_CASTER_FRAGMENT(i)
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
||||
9
Assets/Shaders/Compute/Slime/Slime.shader.meta
Normal file
9
Assets/Shaders/Compute/Slime/Slime.shader.meta
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c848f868eca8c46478b322cbae002d21
|
||||
ShaderImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
136
Assets/Shaders/Compute/Slime/SlimeParticles.shader
Normal file
136
Assets/Shaders/Compute/Slime/SlimeParticles.shader
Normal file
|
|
@ -0,0 +1,136 @@
|
|||
Shader "Aetheria/Slime Particles" {
|
||||
Properties {
|
||||
_StartColor("StartColor", Color) = (1,1,1,1)
|
||||
_EndColor("EndColor", Color) = (0,0,0,1)
|
||||
_Intensity("Intensity", Float) = 1
|
||||
_Roundedness("Roundedness", Float) = .1
|
||||
}
|
||||
|
||||
SubShader {
|
||||
Pass{
|
||||
Tags { "RenderType"="Opaque" }
|
||||
|
||||
CGPROGRAM
|
||||
#pragma target 5.0
|
||||
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
#include "SlimeVertex.cginc"
|
||||
#include "Assets/Shaders/Dither Functions.cginc"
|
||||
|
||||
float _Intensity;
|
||||
float _Roundedness;
|
||||
fixed4 _StartColor;
|
||||
fixed4 _EndColor;
|
||||
StructuredBuffer<uint> _IndexBuffer;
|
||||
StructuredBuffer<Vertex> _VertexBuffer;
|
||||
|
||||
Vertex GetVertex(uint indexBufferIdx) {
|
||||
uint idx = _IndexBuffer[indexBufferIdx];
|
||||
return _VertexBuffer[idx];
|
||||
}
|
||||
|
||||
struct vs_out {
|
||||
float4 pos : SV_POSITION;
|
||||
float4 col : COLOR;
|
||||
float2 uv : TEXCOORD;
|
||||
float4 screenPos : TEXCOORD1;
|
||||
};
|
||||
|
||||
vs_out vert (uint id : SV_VertexID, uint iId : SV_InstanceID)
|
||||
{
|
||||
vs_out Out;
|
||||
Vertex vtx = GetVertex(id);
|
||||
|
||||
Out.pos = UnityObjectToClipPos(float4(vtx.pos, 1.0));
|
||||
Out.uv = vtx.uv;
|
||||
Out.col = lerp(_StartColor, _EndColor, vtx.uv.x);
|
||||
Out.screenPos = ComputeScreenPos(float4(vtx.pos, 1.0));
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
fixed4 frag (vs_out In) : COLOR0
|
||||
{
|
||||
// Simple quadratic curve "texture"
|
||||
float x = 1 - 2 * abs(In.uv.y - .5);
|
||||
//return float4(x,In.uv.x, 0 ,1);
|
||||
float i = x * x * smoothstep(0, _Roundedness, In.uv.x) * (1-In.uv.x) * _Intensity;
|
||||
|
||||
// Apply screen space dithering
|
||||
float2 screenUV = In.screenPos.xy / In.screenPos.w;
|
||||
ditherClip(screenUV, i);
|
||||
|
||||
return In.col * i;
|
||||
}
|
||||
|
||||
ENDCG
|
||||
|
||||
}
|
||||
Pass{
|
||||
Name "ShadowCaster"
|
||||
Tags { "LightMode" = "ShadowCaster" }
|
||||
|
||||
CGPROGRAM
|
||||
#pragma target 5.0
|
||||
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
#include "SlimeVertex.cginc"
|
||||
#include "Assets/Shaders/Dither Functions.cginc"
|
||||
|
||||
float _Intensity;
|
||||
float _Roundedness;
|
||||
StructuredBuffer<uint> _IndexBuffer;
|
||||
StructuredBuffer<Vertex> _VertexBuffer;
|
||||
|
||||
Vertex GetVertex(uint indexBufferIdx) {
|
||||
uint idx = _IndexBuffer[indexBufferIdx];
|
||||
return _VertexBuffer[idx];
|
||||
}
|
||||
|
||||
struct vs_out {
|
||||
float4 pos : SV_POSITION;
|
||||
float4 col : COLOR;
|
||||
float2 uv : TEXCOORD;
|
||||
float4 screenPos : TEXCOORD1;
|
||||
};
|
||||
|
||||
vs_out vert (uint id : SV_VertexID, uint iId : SV_InstanceID)
|
||||
{
|
||||
vs_out Out;
|
||||
Vertex vtx = GetVertex(id);
|
||||
|
||||
Out.pos = UnityObjectToClipPos(float4(vtx.pos, 1.0));
|
||||
Out.uv = vtx.uv;
|
||||
Out.col = 1;
|
||||
Out.screenPos = ComputeScreenPos(float4(vtx.pos, 1.0));
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
fixed4 frag (vs_out In) : COLOR0
|
||||
{
|
||||
// Simple quadratic curve "texture"
|
||||
float x = 1 - 2 * abs(In.uv.y - .5);
|
||||
float i = x * x * smoothstep(0, _Roundedness, In.uv.x) * (1-In.uv.x) * _Intensity;
|
||||
|
||||
// Apply screen space dithering
|
||||
float2 screenUV = In.screenPos.xy / In.screenPos.w;
|
||||
ditherClip(screenUV, i);
|
||||
|
||||
SHADOW_CASTER_FRAGMENT(In)
|
||||
}
|
||||
|
||||
ENDCG
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Fallback Off
|
||||
}
|
||||
|
||||
3
Assets/Shaders/Compute/Slime/SlimeParticles.shader.meta
Normal file
3
Assets/Shaders/Compute/Slime/SlimeParticles.shader.meta
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ce0edf879efdfd147a9fda662bb77ef4
|
||||
timeCreated: 1612395387
|
||||
82
Assets/Shaders/Compute/Slime/SlimeTrails.mat
Normal file
82
Assets/Shaders/Compute/Slime/SlimeTrails.mat
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: SlimeTrails
|
||||
m_Shader: {fileID: 4800000, guid: ce0edf879efdfd147a9fda662bb77ef4, type: 3}
|
||||
m_ShaderKeywords:
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.5
|
||||
- _GlossyReflections: 1
|
||||
- _Intensity: 24.1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _Roundedness: 0.1
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _EndColor: {r: 0.5849056, g: 0.19037023, b: 0.40103197, a: 1}
|
||||
- _StartColor: {r: 0.9339623, g: 0.31624126, b: 0.13656995, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
8
Assets/Shaders/Compute/Slime/SlimeTrails.mat.meta
Normal file
8
Assets/Shaders/Compute/Slime/SlimeTrails.mat.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3b53e1eb5d8a5d34f9bc8c1928ceba76
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
20
Assets/Shaders/Compute/Slime/SlimeVertex.cginc
Normal file
20
Assets/Shaders/Compute/Slime/SlimeVertex.cginc
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#ifndef SLIME_VERTEX_INCLUDED
|
||||
#define SLIME_VERTEX_INCLUDED
|
||||
|
||||
struct Vertex
|
||||
{
|
||||
float3 pos;
|
||||
float2 uv;
|
||||
};
|
||||
|
||||
inline Vertex GetDefaultVertex() {
|
||||
|
||||
Vertex ret;
|
||||
ret.pos = (0).xxx;
|
||||
ret.uv = (-1).xx;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
#endif // SLIME_VERTEX_INCLUDED
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue