Changed Idle scene + added debug monument scene

This commit is contained in:
Rabidus 2023-10-03 17:31:06 +03:00
parent 7f69418a92
commit 508981c264
28 changed files with 51351 additions and 4391 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 826 KiB

View File

@ -0,0 +1,135 @@
fileFormatVersion: 2
guid: bd775c5ae2fdb2b41aa30c81470c52e1
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,28 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LeaderboardAutoscroll : MonoBehaviour
{
public UnityEngine.UI.Scrollbar Scrollbar;
public float TimeBeforeStart;
public float TimeInterval;
public float TimeScroll;
public LeanTweenType Ease;
private void Start()
{
InvokeRepeating("Scroll", TimeBeforeStart, TimeInterval);
}
private void Scroll()
{
LeanTween.value(1, 0, TimeScroll).setOnUpdate((float x) =>
{
Scrollbar.value = x;
}).setLoopPingPong(1).setEase(Ease);
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a4791a202b45b3349b374ace6c6311bf
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

33
Assets/LeanRepeater.cs Normal file
View File

@ -0,0 +1,33 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
public class LeanRepeater : MonoBehaviour
{
public int RepeateCount = -1;
public float Interval = 4f;
public bool StartOnAwake = true;
public UnityEvent Action;
private void Start()
{
if (StartOnAwake)
{
StartRepeater();
}
}
public void StartRepeater()
{
InvokeRepeating("DoAction", 0, Interval);
}
private void DoAction()
{
Action?.Invoke();
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 9584e510d4817c04da3c1c6ab075ab4a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,39 @@
%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: New Render Texture
m_ImageContentsHash:
serializedVersion: 2
Hash: 00000000000000000000000000000000
m_ForcedFallbackFormat: 4
m_DownscaleFallback: 0
m_IsAlphaChannelOptional: 0
serializedVersion: 5
m_Width: 256
m_Height: 256
m_AntiAliasing: 1
m_MipCount: -1
m_DepthStencilFormat: 94
m_ColorFormat: 8
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
m_ShadowSamplingMode: 2

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a8d49320fc7f59343a960958b327e8b5
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 8400000
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: f9a1534be59a3204594a149e8e204592
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,166 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &267753515711800827
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 936928570063510042, guid: 9833bf56bae880743a209d376ff78b67,
type: 3}
propertyPath: m_Mesh
value:
objectReference: {fileID: 0}
- target: {fileID: 936928571287420710, guid: 9833bf56bae880743a209d376ff78b67,
type: 3}
propertyPath: _secondDisplayPreviewImage
value:
objectReference: {fileID: 0}
- target: {fileID: 936928571819123218, guid: 9833bf56bae880743a209d376ff78b67,
type: 3}
propertyPath: m_Name
value: Monument_Origin
objectReference: {fileID: 0}
- target: {fileID: 936928572095971804, guid: 9833bf56bae880743a209d376ff78b67,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 936928572095971804, guid: 9833bf56bae880743a209d376ff78b67,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 936928572095971804, guid: 9833bf56bae880743a209d376ff78b67,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 936928572095971804, guid: 9833bf56bae880743a209d376ff78b67,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 936928572095971804, guid: 9833bf56bae880743a209d376ff78b67,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 936928572095971804, guid: 9833bf56bae880743a209d376ff78b67,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 936928572095971804, guid: 9833bf56bae880743a209d376ff78b67,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 936928572095971804, guid: 9833bf56bae880743a209d376ff78b67,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 936928572095971804, guid: 9833bf56bae880743a209d376ff78b67,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 936928572095971804, guid: 9833bf56bae880743a209d376ff78b67,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 936928572095971804, guid: 9833bf56bae880743a209d376ff78b67,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 936928572095971807, guid: 9833bf56bae880743a209d376ff78b67,
type: 3}
propertyPath: m_Name
value: Game_1
objectReference: {fileID: 0}
- target: {fileID: 936928572095971807, guid: 9833bf56bae880743a209d376ff78b67,
type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 9833bf56bae880743a209d376ff78b67, type: 3}
--- !u!4 &1060566879041929058 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 936928571875367577, guid: 9833bf56bae880743a209d376ff78b67,
type: 3}
m_PrefabInstance: {fileID: 267753515711800827}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &839020763146513164
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 1060566879041929058}
m_Modifications:
- target: {fileID: 8384024150922206674, guid: b0bde6fac39c3e24a86072ee05ed4520,
type: 3}
propertyPath: m_Name
value: Monument_1
objectReference: {fileID: 0}
- target: {fileID: 8384024150922206675, guid: b0bde6fac39c3e24a86072ee05ed4520,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8384024150922206675, guid: b0bde6fac39c3e24a86072ee05ed4520,
type: 3}
propertyPath: m_LocalPosition.x
value: 93
objectReference: {fileID: 0}
- target: {fileID: 8384024150922206675, guid: b0bde6fac39c3e24a86072ee05ed4520,
type: 3}
propertyPath: m_LocalPosition.y
value: -276
objectReference: {fileID: 0}
- target: {fileID: 8384024150922206675, guid: b0bde6fac39c3e24a86072ee05ed4520,
type: 3}
propertyPath: m_LocalPosition.z
value: 9528
objectReference: {fileID: 0}
- target: {fileID: 8384024150922206675, guid: b0bde6fac39c3e24a86072ee05ed4520,
type: 3}
propertyPath: m_LocalRotation.w
value: -0.20349306
objectReference: {fileID: 0}
- target: {fileID: 8384024150922206675, guid: b0bde6fac39c3e24a86072ee05ed4520,
type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 8384024150922206675, guid: b0bde6fac39c3e24a86072ee05ed4520,
type: 3}
propertyPath: m_LocalRotation.y
value: -0.9790764
objectReference: {fileID: 0}
- target: {fileID: 8384024150922206675, guid: b0bde6fac39c3e24a86072ee05ed4520,
type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 8384024150922206675, guid: b0bde6fac39c3e24a86072ee05ed4520,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8384024150922206675, guid: b0bde6fac39c3e24a86072ee05ed4520,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: -203.483
objectReference: {fileID: 0}
- target: {fileID: 8384024150922206675, guid: b0bde6fac39c3e24a86072ee05ed4520,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: b0bde6fac39c3e24a86072ee05ed4520, type: 3}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: e88e6431925fa7c459f87cf8e49134b8
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -9,6 +9,8 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 7994773461938888799}
- component: {fileID: 278234962349620712}
- component: {fileID: 5207126240866789456}
m_Layer: 5
m_Name: Leftpart
m_TagString: Untagged
@ -35,9 +37,47 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -529.16, y: 0}
m_SizeDelta: {x: -1058.3, y: 0}
m_AnchoredPosition: {x: -589.755, y: -0.000019073486}
m_SizeDelta: {x: -1179.51, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &278234962349620712
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7994773461938888798}
m_CullTransparentMesh: 1
--- !u!114 &5207126240866789456
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7994773461938888798}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.6156863, g: 0.61960787, b: 0.61960787, a: 1}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &7994773462540899080
GameObject:
m_ObjectHideFlags: 0
@ -47,6 +87,8 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 7994773462540899081}
- component: {fileID: 6363322527975530962}
- component: {fileID: 8428277764834780462}
m_Layer: 5
m_Name: MiddlePart
m_TagString: Untagged
@ -73,9 +115,47 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -150.87, y: 0}
m_SizeDelta: {x: -677.88, y: 0}
m_AnchoredPosition: {x: 22.420471, y: 0}
m_SizeDelta: {x: -882.3224, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6363322527975530962
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7994773462540899080}
m_CullTransparentMesh: 1
--- !u!114 &8428277764834780462
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7994773462540899080}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.6156863, g: 0.61960787, b: 0.61960787, a: 1}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &7994773462864506480
GameObject:
m_ObjectHideFlags: 0
@ -136,7 +216,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
@ -167,7 +247,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &7994773462896464113
RectTransform:
m_ObjectHideFlags: 0
@ -366,7 +446,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 126.3912}
m_SizeDelta: {x: 0, y: 101}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &7994773463262829945
CanvasRenderer:
@ -383,7 +463,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7994773463262829946}
m_Enabled: 1
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
@ -487,7 +567,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
@ -538,7 +618,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0.000030517578, y: -0.000030517578}
m_AnchoredPosition: {x: 0, y: -0.000030517578}
m_SizeDelta: {x: -53.962, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &7994773463438948429
@ -596,14 +676,14 @@ MonoBehaviour:
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 72
m_fontSize: 18
m_fontSizeBase: 73.7
m_fontWeight: 400
m_enableAutoSizing: 1
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 1
m_HorizontalAlignment: 1
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
@ -673,7 +753,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0.39245, y: 3.1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 542.78, y: 82.831}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &7994773463444985309
@ -833,7 +913,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
@ -858,6 +938,8 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 7994773463554530819}
- component: {fileID: 253201534103398323}
- component: {fileID: 478597925904312270}
m_Layer: 5
m_Name: RightPart
m_TagString: Untagged
@ -883,9 +965,47 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 378.29, y: 0}
m_SizeDelta: {x: -756.59, y: 0}
m_AnchoredPosition: {x: 612.77014, y: 0}
m_SizeDelta: {x: -1225.5403, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &253201534103398323
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7994773463554530818}
m_CullTransparentMesh: 1
--- !u!114 &478597925904312270
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7994773463554530818}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.6156863, g: 0.61960787, b: 0.61960787, a: 1}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &7994773464027350334
GameObject:
m_ObjectHideFlags: 0
@ -946,7 +1066,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:

File diff suppressed because it is too large Load Diff

View File

@ -125,7 +125,7 @@ NavMeshSettings:
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!43 &1414477748
--- !u!43 &41644327
Mesh:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@ -386,7 +386,7 @@ PrefabInstance:
type: 3}
propertyPath: m_Mesh
value:
objectReference: {fileID: 1414477748}
objectReference: {fileID: 41644327}
- target: {fileID: 2046569839956964493, guid: 78c242f720ca94d448d7248e1b890fb4,
type: 3}
propertyPath: m_AnchorMax.x
@ -437,36 +437,6 @@ PrefabInstance:
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5175930769234331501, guid: 78c242f720ca94d448d7248e1b890fb4,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5175930769234331501, guid: 78c242f720ca94d448d7248e1b890fb4,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5175930769234331501, guid: 78c242f720ca94d448d7248e1b890fb4,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5175930769234331501, guid: 78c242f720ca94d448d7248e1b890fb4,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5175930769234331501, guid: 78c242f720ca94d448d7248e1b890fb4,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6322764043149975251, guid: 78c242f720ca94d448d7248e1b890fb4,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8066313097342408262, guid: 78c242f720ca94d448d7248e1b890fb4,
type: 3}
propertyPath: m_AnchorMax.x

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 4183a0d4b125c444fa96b3b752bc04b0
timeCreated: 1496764510
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

View File

@ -5,9 +5,25 @@ using UnityEngine.Events;
public class LeanTimer : MonoBehaviour
{
[Header("Start values:")]
public bool StartOnAwake = false;
public float StartValue;
public float EndValue;
public float Time;
public UnityEvent<float> OnUpdate = new UnityEvent<float>();
private LTDescr LTDescr;
private void Start()
{
if (StartOnAwake)
{
StartTimer(StartValue, EndValue, Time);
}
}
public void StartTimer(float startValue, float endValue, float time, System.Action OnComplete = null)
{
LTDescr = LeanTween.value(1, 0, time).setOnUpdate((float x) =>

File diff suppressed because one or more lines are too long

47
Assets/UIFader.cs Normal file
View File

@ -0,0 +1,47 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class UIFader : MonoBehaviour
{
private float FadeTime;
private CanvasGroup canvasGroup;
private void Awake()
{
canvasGroup = GetComponent<CanvasGroup>();
}
private bool isShow = true;
public void ShowPanel()
{
LeanTween.value(0, 1, FadeTime).setOnUpdate((float x) =>
{
canvasGroup.alpha = x;
});
canvasGroup.blocksRaycasts = true;
isShow = true;
}
public void HidePanel()
{
LeanTween.value(1, 0, FadeTime).setOnUpdate((float x) =>
{
canvasGroup.alpha = x;
});
canvasGroup.blocksRaycasts = false;
isShow = false;
}
public void Toggle()
{
if (isShow)
HidePanel();
else
ShowPanel();
}
}

11
Assets/UIFader.cs.meta Normal file
View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 9b7007d5a9d9b3847a1dbb5b0f65e700
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: