Update player prefab and theme colors; refine visual effects and VFX instantiation
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -117,8 +117,8 @@ Material:
|
|||||||
- _XRMotionVectorsPass: 1
|
- _XRMotionVectorsPass: 1
|
||||||
- _ZWrite: 1
|
- _ZWrite: 1
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _BaseColor: {r: 1, g: 0.18039216, b: 0.3882353, a: 1}
|
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
- _Color: {r: 1, g: 0.18039212, b: 0.38823527, a: 1}
|
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ TrailRenderer:
|
|||||||
m_SortingLayer: 0
|
m_SortingLayer: 0
|
||||||
m_SortingOrder: 0
|
m_SortingOrder: 0
|
||||||
m_MaskInteraction: 0
|
m_MaskInteraction: 0
|
||||||
m_Time: 0.3
|
m_Time: 0.76
|
||||||
m_PreviewTimeScale: 1
|
m_PreviewTimeScale: 1
|
||||||
m_Parameters:
|
m_Parameters:
|
||||||
serializedVersion: 3
|
serializedVersion: 3
|
||||||
|
|||||||
@@ -1358,7 +1358,7 @@ ParticleSystem:
|
|||||||
m_RotationOrder: 4
|
m_RotationOrder: 4
|
||||||
separateAxes: 0
|
separateAxes: 0
|
||||||
ColorModule:
|
ColorModule:
|
||||||
enabled: 1
|
enabled: 0
|
||||||
gradient:
|
gradient:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
minMaxState: 1
|
minMaxState: 1
|
||||||
@@ -1366,7 +1366,7 @@ ParticleSystem:
|
|||||||
maxColor: {r: 1, g: 1, b: 1, a: 1}
|
maxColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
maxGradient:
|
maxGradient:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
key0: {r: 1, g: 0.18039216, b: 0.3882353, a: 1}
|
key0: {r: 1, g: 1, b: 1, a: 1}
|
||||||
key1: {r: 1, g: 1, b: 1, a: 0}
|
key1: {r: 1, g: 1, b: 1, a: 0}
|
||||||
key2: {r: 0, g: 0, b: 0, a: 0}
|
key2: {r: 0, g: 0, b: 0, a: 0}
|
||||||
key3: {r: 0, g: 0, b: 0, a: 0}
|
key3: {r: 0, g: 0, b: 0, a: 0}
|
||||||
@@ -1382,7 +1382,7 @@ ParticleSystem:
|
|||||||
ctime5: 0
|
ctime5: 0
|
||||||
ctime6: 0
|
ctime6: 0
|
||||||
ctime7: 0
|
ctime7: 0
|
||||||
atime0: 0
|
atime0: 35852
|
||||||
atime1: 65535
|
atime1: 65535
|
||||||
atime2: 0
|
atime2: 0
|
||||||
atime3: 0
|
atime3: 0
|
||||||
@@ -4840,7 +4840,7 @@ ParticleSystemRenderer:
|
|||||||
m_RenderingLayerMask: 1
|
m_RenderingLayerMask: 1
|
||||||
m_RendererPriority: 0
|
m_RendererPriority: 0
|
||||||
m_Materials:
|
m_Materials:
|
||||||
- {fileID: 2100000, guid: af1492750aabf7eb688b2ba78cdbe649, type: 2}
|
- {fileID: 2100000, guid: 869157ceb2f952290bbeb3000d5032f2, type: 2}
|
||||||
m_StaticBatchInfo:
|
m_StaticBatchInfo:
|
||||||
firstSubMesh: 0
|
firstSubMesh: 0
|
||||||
subMeshCount: 0
|
subMeshCount: 0
|
||||||
|
|||||||
@@ -675,7 +675,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier: Assembly-CSharp::Infrastructure.Unity.LevelGenerator
|
m_EditorClassIdentifier: Assembly-CSharp::Infrastructure.Unity.LevelGenerator
|
||||||
tilePrefab: {fileID: 2142595510769725438, guid: a84ad84e96942d35c824885a7c08a844, type: 3}
|
tilePrefab: {fileID: 2142595510769725438, guid: a84ad84e96942d35c824885a7c08a844, type: 3}
|
||||||
tileBreakVfxPrefab: {fileID: 3395603910160708684, guid: 7c5c893ba21562b2aad6bffb1887f4b1, type: 3}
|
tileBreakVfxPrefab: {fileID: 0}
|
||||||
jumpPadPrefab: {fileID: 3258547662887829175, guid: e1d1bd44370c9986ebd4bb7730430a12, type: 3}
|
jumpPadPrefab: {fileID: 3258547662887829175, guid: e1d1bd44370c9986ebd4bb7730430a12, type: 3}
|
||||||
teleporterPrefab: {fileID: 4601941687390792571, guid: 53f1de555c523511e9aaa1dee06fdf79, type: 3}
|
teleporterPrefab: {fileID: 4601941687390792571, guid: 53f1de555c523511e9aaa1dee06fdf79, type: 3}
|
||||||
gridSizeX: 25
|
gridSizeX: 25
|
||||||
|
|||||||
@@ -161,7 +161,13 @@ namespace Infrastructure.Unity
|
|||||||
|
|
||||||
if (tileBreakVfxPrefab)
|
if (tileBreakVfxPrefab)
|
||||||
{
|
{
|
||||||
Instantiate(tileBreakVfxPrefab, position, Quaternion.identity);
|
var vfx = Instantiate(tileBreakVfxPrefab, position, Quaternion.identity);
|
||||||
|
var main = vfx.main;
|
||||||
|
|
||||||
|
var currentColor = go.MeshRenderer.material.color;
|
||||||
|
main.startColor = currentColor;
|
||||||
|
|
||||||
|
Destroy(vfx.gameObject, 2f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ namespace Infrastructure.Unity
|
|||||||
|
|
||||||
public static ThemePalette CyberpunkTheme => new ThemePalette
|
public static ThemePalette CyberpunkTheme => new ThemePalette
|
||||||
{
|
{
|
||||||
StableColor = new Color(0.1f, 0.1f, 0.3f), // Dark Blue
|
StableColor = new Color(0.23f, 0.53f, 0.7f),
|
||||||
WarningColor = new Color(1f, 0f, 1f) // Neon Magenta
|
WarningColor = new Color(1f, 0f, 1f)
|
||||||
};
|
};
|
||||||
|
|
||||||
public static ThemePalette GoldenTheme => new ThemePalette
|
public static ThemePalette GoldenTheme => new ThemePalette
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ namespace Infrastructure.Unity
|
|||||||
private Action<TileViewAdapter> _onReturnToPool;
|
private Action<TileViewAdapter> _onReturnToPool;
|
||||||
private float _targetAlpha = 1f;
|
private float _targetAlpha = 1f;
|
||||||
|
|
||||||
|
public MeshRenderer MeshRenderer => meshRenderer;
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
_propBlock = new MaterialPropertyBlock();
|
_propBlock = new MaterialPropertyBlock();
|
||||||
|
|||||||
Reference in New Issue
Block a user