net.dreditor.splashcredits 0.0.0-stage → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.attestation.p7m +0 -0
- package/Assets/DREditor_Made_With.png +0 -0
- package/Assets/DREditor_Made_With.png.meta +117 -0
- package/Assets/Fmod.png +0 -0
- package/Assets/Fmod.png.meta +132 -0
- package/Assets.meta +8 -0
- package/CreditsSetup.txt +6 -0
- package/CreditsSetup.txt.meta +7 -0
- package/DREditor.SplashCredits.asmdef +21 -0
- package/DREditor.SplashCredits.asmdef.meta +7 -0
- package/EndCredits.cs +207 -0
- package/EndCredits.cs.meta +11 -0
- package/ForceBoolWithEventUpdate.cs +41 -0
- package/ForceBoolWithEventUpdate.cs.meta +11 -0
- package/ILoadScreenManager.cs +14 -0
- package/ILoadScreenManager.cs.meta +11 -0
- package/LoadScreenManager.cs +239 -0
- package/LoadScreenManager.cs.meta +11 -0
- package/Samples~/Credits_Canvas_ETemplate.prefab +596 -0
- package/Samples~/Credits_Canvas_ETemplate.prefab.meta +7 -0
- package/Samples~/DRE_Credits.unity +429 -0
- package/Samples~/DRE_Credits.unity.meta +7 -0
- package/Samples~/DRE_Splash.unity +262 -0
- package/Samples~/DRE_Splash.unity.meta +7 -0
- package/Samples~/Force_Menu_Access.prefab +48 -0
- package/Samples~/Force_Menu_Access.prefab.meta +7 -0
- package/Samples~/Load_Screen_Canvas.prefab +337 -0
- package/Samples~/Load_Screen_Canvas.prefab.meta +7 -0
- package/Samples~/OnLeavingCredits.asset +14 -0
- package/Samples~/OnLeavingCredits.asset.meta +8 -0
- package/Samples~/SplashScreen_DREditor.asset +18 -0
- package/Samples~/SplashScreen_DREditor.asset.meta +8 -0
- package/Samples~/SplashScreen_FMOD.asset +18 -0
- package/Samples~/SplashScreen_FMOD.asset.meta +8 -0
- package/Samples~/Splash_Load_Screens_DRE.prefab +285 -0
- package/Samples~/Splash_Load_Screens_DRE.prefab.meta +7 -0
- package/Samples~/Splash_Screen_Canvas.prefab +337 -0
- package/Samples~/Splash_Screen_Canvas.prefab.meta +7 -0
- package/SplashScreen.cs +39 -0
- package/SplashScreen.cs.meta +11 -0
- package/SplashScreenManager.cs +322 -0
- package/SplashScreenManager.cs.meta +11 -0
- package/Splash_RT.renderTexture +39 -0
- package/Splash_RT.renderTexture.meta +8 -0
- package/package.json +40 -4
- package/package.json.meta +7 -0
- package/README.md +0 -3
package/.attestation.p7m
ADDED
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: ebf097ea9919a8b4fa2b0141983790ea
|
|
3
|
+
TextureImporter:
|
|
4
|
+
internalIDToNameTable: []
|
|
5
|
+
externalObjects: {}
|
|
6
|
+
serializedVersion: 13
|
|
7
|
+
mipmaps:
|
|
8
|
+
mipMapMode: 0
|
|
9
|
+
enableMipMap: 0
|
|
10
|
+
sRGBTexture: 1
|
|
11
|
+
linearTexture: 0
|
|
12
|
+
fadeOut: 0
|
|
13
|
+
borderMipMap: 0
|
|
14
|
+
mipMapsPreserveCoverage: 0
|
|
15
|
+
alphaTestReferenceValue: 0.5
|
|
16
|
+
mipMapFadeDistanceStart: 1
|
|
17
|
+
mipMapFadeDistanceEnd: 3
|
|
18
|
+
bumpmap:
|
|
19
|
+
convertToNormalMap: 0
|
|
20
|
+
externalNormalMap: 0
|
|
21
|
+
heightScale: 0.25
|
|
22
|
+
normalMapFilter: 0
|
|
23
|
+
flipGreenChannel: 0
|
|
24
|
+
isReadable: 0
|
|
25
|
+
streamingMipmaps: 0
|
|
26
|
+
streamingMipmapsPriority: 0
|
|
27
|
+
vTOnly: 0
|
|
28
|
+
ignoreMipmapLimit: 0
|
|
29
|
+
grayScaleToAlpha: 0
|
|
30
|
+
generateCubemap: 6
|
|
31
|
+
cubemapConvolution: 0
|
|
32
|
+
seamlessCubemap: 0
|
|
33
|
+
textureFormat: 1
|
|
34
|
+
maxTextureSize: 2048
|
|
35
|
+
textureSettings:
|
|
36
|
+
serializedVersion: 2
|
|
37
|
+
filterMode: 1
|
|
38
|
+
aniso: 1
|
|
39
|
+
mipBias: 0
|
|
40
|
+
wrapU: 1
|
|
41
|
+
wrapV: 1
|
|
42
|
+
wrapW: 0
|
|
43
|
+
nPOTScale: 0
|
|
44
|
+
lightmap: 0
|
|
45
|
+
compressionQuality: 50
|
|
46
|
+
spriteMode: 1
|
|
47
|
+
spriteExtrude: 1
|
|
48
|
+
spriteMeshType: 1
|
|
49
|
+
alignment: 0
|
|
50
|
+
spritePivot: {x: 0.5, y: 0.5}
|
|
51
|
+
spritePixelsToUnits: 100
|
|
52
|
+
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
|
53
|
+
spriteGenerateFallbackPhysicsShape: 1
|
|
54
|
+
alphaUsage: 1
|
|
55
|
+
alphaIsTransparency: 1
|
|
56
|
+
spriteTessellationDetail: -1
|
|
57
|
+
textureType: 8
|
|
58
|
+
textureShape: 1
|
|
59
|
+
singleChannelComponent: 0
|
|
60
|
+
flipbookRows: 1
|
|
61
|
+
flipbookColumns: 1
|
|
62
|
+
maxTextureSizeSet: 0
|
|
63
|
+
compressionQualitySet: 0
|
|
64
|
+
textureFormatSet: 0
|
|
65
|
+
ignorePngGamma: 0
|
|
66
|
+
applyGammaDecoding: 0
|
|
67
|
+
swizzle: 50462976
|
|
68
|
+
cookieLightType: 0
|
|
69
|
+
platformSettings:
|
|
70
|
+
- serializedVersion: 4
|
|
71
|
+
buildTarget: DefaultTexturePlatform
|
|
72
|
+
maxTextureSize: 2048
|
|
73
|
+
resizeAlgorithm: 0
|
|
74
|
+
textureFormat: -1
|
|
75
|
+
textureCompression: 1
|
|
76
|
+
compressionQuality: 50
|
|
77
|
+
crunchedCompression: 0
|
|
78
|
+
allowsAlphaSplitting: 0
|
|
79
|
+
overridden: 0
|
|
80
|
+
ignorePlatformSupport: 0
|
|
81
|
+
androidETC2FallbackOverride: 0
|
|
82
|
+
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
83
|
+
- serializedVersion: 4
|
|
84
|
+
buildTarget: Standalone
|
|
85
|
+
maxTextureSize: 2048
|
|
86
|
+
resizeAlgorithm: 0
|
|
87
|
+
textureFormat: -1
|
|
88
|
+
textureCompression: 1
|
|
89
|
+
compressionQuality: 50
|
|
90
|
+
crunchedCompression: 0
|
|
91
|
+
allowsAlphaSplitting: 0
|
|
92
|
+
overridden: 0
|
|
93
|
+
ignorePlatformSupport: 0
|
|
94
|
+
androidETC2FallbackOverride: 0
|
|
95
|
+
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
96
|
+
spriteSheet:
|
|
97
|
+
serializedVersion: 2
|
|
98
|
+
sprites: []
|
|
99
|
+
outline: []
|
|
100
|
+
customData:
|
|
101
|
+
physicsShape: []
|
|
102
|
+
bones: []
|
|
103
|
+
spriteID: 5e97eb03825dee720800000000000000
|
|
104
|
+
internalID: 0
|
|
105
|
+
vertices: []
|
|
106
|
+
indices:
|
|
107
|
+
edges: []
|
|
108
|
+
weights: []
|
|
109
|
+
secondaryTextures: []
|
|
110
|
+
spriteCustomMetadata:
|
|
111
|
+
entries: []
|
|
112
|
+
nameFileIdTable: {}
|
|
113
|
+
mipmapLimitGroupName:
|
|
114
|
+
pSDRemoveMatte: 0
|
|
115
|
+
userData:
|
|
116
|
+
assetBundleName:
|
|
117
|
+
assetBundleVariant:
|
package/Assets/Fmod.png
ADDED
|
Binary file
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: fe271c43cddb54c4694743238e7c9913
|
|
3
|
+
TextureImporter:
|
|
4
|
+
internalIDToNameTable: []
|
|
5
|
+
externalObjects: {}
|
|
6
|
+
serializedVersion: 11
|
|
7
|
+
mipmaps:
|
|
8
|
+
mipMapMode: 0
|
|
9
|
+
enableMipMap: 0
|
|
10
|
+
sRGBTexture: 1
|
|
11
|
+
linearTexture: 0
|
|
12
|
+
fadeOut: 0
|
|
13
|
+
borderMipMap: 0
|
|
14
|
+
mipMapsPreserveCoverage: 0
|
|
15
|
+
alphaTestReferenceValue: 0.5
|
|
16
|
+
mipMapFadeDistanceStart: 1
|
|
17
|
+
mipMapFadeDistanceEnd: 3
|
|
18
|
+
bumpmap:
|
|
19
|
+
convertToNormalMap: 0
|
|
20
|
+
externalNormalMap: 0
|
|
21
|
+
heightScale: 0.25
|
|
22
|
+
normalMapFilter: 0
|
|
23
|
+
isReadable: 0
|
|
24
|
+
streamingMipmaps: 0
|
|
25
|
+
streamingMipmapsPriority: 0
|
|
26
|
+
vTOnly: 0
|
|
27
|
+
grayScaleToAlpha: 0
|
|
28
|
+
generateCubemap: 6
|
|
29
|
+
cubemapConvolution: 0
|
|
30
|
+
seamlessCubemap: 0
|
|
31
|
+
textureFormat: 1
|
|
32
|
+
maxTextureSize: 2048
|
|
33
|
+
textureSettings:
|
|
34
|
+
serializedVersion: 2
|
|
35
|
+
filterMode: -1
|
|
36
|
+
aniso: -1
|
|
37
|
+
mipBias: -100
|
|
38
|
+
wrapU: 1
|
|
39
|
+
wrapV: 1
|
|
40
|
+
wrapW: -1
|
|
41
|
+
nPOTScale: 0
|
|
42
|
+
lightmap: 0
|
|
43
|
+
compressionQuality: 50
|
|
44
|
+
spriteMode: 1
|
|
45
|
+
spriteExtrude: 1
|
|
46
|
+
spriteMeshType: 1
|
|
47
|
+
alignment: 0
|
|
48
|
+
spritePivot: {x: 0.5, y: 0.5}
|
|
49
|
+
spritePixelsToUnits: 100
|
|
50
|
+
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
|
51
|
+
spriteGenerateFallbackPhysicsShape: 1
|
|
52
|
+
alphaUsage: 1
|
|
53
|
+
alphaIsTransparency: 1
|
|
54
|
+
spriteTessellationDetail: -1
|
|
55
|
+
textureType: 8
|
|
56
|
+
textureShape: 1
|
|
57
|
+
singleChannelComponent: 0
|
|
58
|
+
flipbookRows: 1
|
|
59
|
+
flipbookColumns: 1
|
|
60
|
+
maxTextureSizeSet: 0
|
|
61
|
+
compressionQualitySet: 0
|
|
62
|
+
textureFormatSet: 0
|
|
63
|
+
ignorePngGamma: 0
|
|
64
|
+
applyGammaDecoding: 0
|
|
65
|
+
platformSettings:
|
|
66
|
+
- serializedVersion: 3
|
|
67
|
+
buildTarget: DefaultTexturePlatform
|
|
68
|
+
maxTextureSize: 2048
|
|
69
|
+
resizeAlgorithm: 0
|
|
70
|
+
textureFormat: -1
|
|
71
|
+
textureCompression: 1
|
|
72
|
+
compressionQuality: 50
|
|
73
|
+
crunchedCompression: 0
|
|
74
|
+
allowsAlphaSplitting: 0
|
|
75
|
+
overridden: 0
|
|
76
|
+
androidETC2FallbackOverride: 0
|
|
77
|
+
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
78
|
+
- serializedVersion: 3
|
|
79
|
+
buildTarget: Standalone
|
|
80
|
+
maxTextureSize: 2048
|
|
81
|
+
resizeAlgorithm: 0
|
|
82
|
+
textureFormat: -1
|
|
83
|
+
textureCompression: 1
|
|
84
|
+
compressionQuality: 50
|
|
85
|
+
crunchedCompression: 0
|
|
86
|
+
allowsAlphaSplitting: 0
|
|
87
|
+
overridden: 0
|
|
88
|
+
androidETC2FallbackOverride: 0
|
|
89
|
+
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
90
|
+
- serializedVersion: 3
|
|
91
|
+
buildTarget: Windows Store Apps
|
|
92
|
+
maxTextureSize: 2048
|
|
93
|
+
resizeAlgorithm: 0
|
|
94
|
+
textureFormat: -1
|
|
95
|
+
textureCompression: 1
|
|
96
|
+
compressionQuality: 50
|
|
97
|
+
crunchedCompression: 0
|
|
98
|
+
allowsAlphaSplitting: 0
|
|
99
|
+
overridden: 0
|
|
100
|
+
androidETC2FallbackOverride: 0
|
|
101
|
+
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
102
|
+
- serializedVersion: 3
|
|
103
|
+
buildTarget: Android
|
|
104
|
+
maxTextureSize: 2048
|
|
105
|
+
resizeAlgorithm: 0
|
|
106
|
+
textureFormat: -1
|
|
107
|
+
textureCompression: 1
|
|
108
|
+
compressionQuality: 50
|
|
109
|
+
crunchedCompression: 0
|
|
110
|
+
allowsAlphaSplitting: 0
|
|
111
|
+
overridden: 0
|
|
112
|
+
androidETC2FallbackOverride: 0
|
|
113
|
+
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
114
|
+
spriteSheet:
|
|
115
|
+
serializedVersion: 2
|
|
116
|
+
sprites: []
|
|
117
|
+
outline: []
|
|
118
|
+
physicsShape: []
|
|
119
|
+
bones: []
|
|
120
|
+
spriteID: 5e97eb03825dee720800000000000000
|
|
121
|
+
internalID: 0
|
|
122
|
+
vertices: []
|
|
123
|
+
indices:
|
|
124
|
+
edges: []
|
|
125
|
+
weights: []
|
|
126
|
+
secondaryTextures: []
|
|
127
|
+
spritePackingTag:
|
|
128
|
+
pSDRemoveMatte: 0
|
|
129
|
+
pSDShowRemoveMatteOption: 0
|
|
130
|
+
userData:
|
|
131
|
+
assetBundleName:
|
|
132
|
+
assetBundleVariant:
|
package/Assets.meta
ADDED
package/CreditsSetup.txt
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
The only thing that would be needed to be set up is:
|
|
2
|
+
Creating an animator on the credits canvas for moving the credits.
|
|
3
|
+
Making the animation clip not loop.
|
|
4
|
+
On the animation at the end, add an animation event where it calls the leave credits function.
|
|
5
|
+
|
|
6
|
+
Put in whatever music you want.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "DREditor.SplashCredits",
|
|
3
|
+
"rootNamespace": "",
|
|
4
|
+
"references": [
|
|
5
|
+
"DREditor",
|
|
6
|
+
"DREditor.Fading",
|
|
7
|
+
"Unity.TextMeshPro",
|
|
8
|
+
"Unity.InputSystem",
|
|
9
|
+
"DG.Tweening",
|
|
10
|
+
"DREditor.Controls"
|
|
11
|
+
],
|
|
12
|
+
"includePlatforms": [],
|
|
13
|
+
"excludePlatforms": [],
|
|
14
|
+
"allowUnsafeCode": false,
|
|
15
|
+
"overrideReferences": false,
|
|
16
|
+
"precompiledReferences": [],
|
|
17
|
+
"autoReferenced": true,
|
|
18
|
+
"defineConstraints": [],
|
|
19
|
+
"versionDefines": [],
|
|
20
|
+
"noEngineReferences": false
|
|
21
|
+
}
|
package/EndCredits.cs
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
#if DOTWEEN
|
|
3
|
+
using DG.Tweening;
|
|
4
|
+
#endif
|
|
5
|
+
using DREditor.EventObjects;
|
|
6
|
+
using DREditor.Fading;
|
|
7
|
+
using DREditor.Services;
|
|
8
|
+
using System.Collections;
|
|
9
|
+
using TMPro;
|
|
10
|
+
using UnityEngine;
|
|
11
|
+
using UnityEngine.InputSystem;
|
|
12
|
+
using UnityEngine.SceneManagement;
|
|
13
|
+
|
|
14
|
+
namespace DREditor.SplashCredits
|
|
15
|
+
{
|
|
16
|
+
/// <summary>
|
|
17
|
+
///
|
|
18
|
+
/// </summary>
|
|
19
|
+
public class EndCredits : MonoBehaviour
|
|
20
|
+
{
|
|
21
|
+
/// <summary>
|
|
22
|
+
///
|
|
23
|
+
/// </summary>
|
|
24
|
+
[Header("")]
|
|
25
|
+
[Space]
|
|
26
|
+
[Header("")]
|
|
27
|
+
[Space]
|
|
28
|
+
[Tooltip("")]
|
|
29
|
+
[SerializeField] protected InputActionReference pause = null;
|
|
30
|
+
|
|
31
|
+
/// <summary>
|
|
32
|
+
///
|
|
33
|
+
/// </summary>
|
|
34
|
+
[Tooltip("")]
|
|
35
|
+
[SerializeField] protected SceneEvent onLeavingCredits = null;
|
|
36
|
+
|
|
37
|
+
/// <summary>
|
|
38
|
+
///
|
|
39
|
+
/// </summary>
|
|
40
|
+
[Tooltip("")]
|
|
41
|
+
[SerializeField] protected string menuScene = "";
|
|
42
|
+
|
|
43
|
+
/// <summary>
|
|
44
|
+
///
|
|
45
|
+
/// </summary>
|
|
46
|
+
[Tooltip("")]
|
|
47
|
+
[SerializeField] protected TextMeshProUGUI skipText = null;
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
/// <summary>
|
|
51
|
+
///
|
|
52
|
+
/// </summary>
|
|
53
|
+
[Header("")]
|
|
54
|
+
[Space]
|
|
55
|
+
[Tooltip("")]
|
|
56
|
+
[SerializeField] protected float startFadeOutDuration = 1;
|
|
57
|
+
|
|
58
|
+
/// <summary>
|
|
59
|
+
///
|
|
60
|
+
/// </summary>
|
|
61
|
+
[Tooltip("")]
|
|
62
|
+
[SerializeField] protected float skipTextFadeToValue = 1;
|
|
63
|
+
|
|
64
|
+
/// <summary>
|
|
65
|
+
///
|
|
66
|
+
/// </summary>
|
|
67
|
+
[Tooltip("")]
|
|
68
|
+
[SerializeField] protected float skipTextFadeToDuration = 1;
|
|
69
|
+
|
|
70
|
+
/// <summary>
|
|
71
|
+
///
|
|
72
|
+
/// </summary>
|
|
73
|
+
[Tooltip("")]
|
|
74
|
+
[SerializeField] protected float skipTextFadeOutValue = 0;
|
|
75
|
+
|
|
76
|
+
/// <summary>
|
|
77
|
+
///
|
|
78
|
+
/// </summary>
|
|
79
|
+
[Tooltip("")]
|
|
80
|
+
[SerializeField] protected float skipTextFadeOutDuration = 1;
|
|
81
|
+
|
|
82
|
+
/// <summary>
|
|
83
|
+
///
|
|
84
|
+
/// </summary>
|
|
85
|
+
[Tooltip("")]
|
|
86
|
+
[SerializeField] protected float leaveFadeToDuration = 0.5f;
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
/// <summary>
|
|
90
|
+
///
|
|
91
|
+
/// </summary>
|
|
92
|
+
protected bool canSkip = false;
|
|
93
|
+
|
|
94
|
+
/// <summary>
|
|
95
|
+
///
|
|
96
|
+
/// </summary>
|
|
97
|
+
protected bool skipping = false;
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
/// <summary>
|
|
101
|
+
///
|
|
102
|
+
/// </summary>
|
|
103
|
+
protected virtual void Start() => StartCredits();
|
|
104
|
+
|
|
105
|
+
/// <summary>
|
|
106
|
+
///
|
|
107
|
+
/// </summary>
|
|
108
|
+
protected virtual void StartCredits()
|
|
109
|
+
{
|
|
110
|
+
AddSkipInput();
|
|
111
|
+
|
|
112
|
+
StartCoroutine(FadeOutService());
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/// <summary>
|
|
116
|
+
///
|
|
117
|
+
/// </summary>
|
|
118
|
+
protected virtual void OnDestroy() => RemoveSkipInput();
|
|
119
|
+
|
|
120
|
+
/// <summary>
|
|
121
|
+
///
|
|
122
|
+
/// </summary>
|
|
123
|
+
protected virtual void AddSkipInput() => pause.action.started += OnSkipInput;
|
|
124
|
+
|
|
125
|
+
/// <summary>
|
|
126
|
+
///
|
|
127
|
+
/// </summary>
|
|
128
|
+
protected virtual void RemoveSkipInput() => pause.action.started -= OnSkipInput;
|
|
129
|
+
|
|
130
|
+
/// <summary>
|
|
131
|
+
///
|
|
132
|
+
/// </summary>
|
|
133
|
+
/// <returns></returns>
|
|
134
|
+
protected virtual IEnumerator FadeOutService()
|
|
135
|
+
{
|
|
136
|
+
while (ServiceLocator.GetService<GlobalFade>().isTransitioning)
|
|
137
|
+
yield return null;
|
|
138
|
+
|
|
139
|
+
if (ServiceLocator.GetService<GlobalFade>().IsDark)
|
|
140
|
+
ServiceLocator.GetService<GlobalFade>().FadeOut(startFadeOutDuration);
|
|
141
|
+
|
|
142
|
+
yield break;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
/// <summary>
|
|
147
|
+
///
|
|
148
|
+
/// </summary>
|
|
149
|
+
/// <param name="context"></param>
|
|
150
|
+
/// <remarks></remarks>
|
|
151
|
+
protected virtual void OnSkipInput(InputAction.CallbackContext context)
|
|
152
|
+
{
|
|
153
|
+
UnityEngine.Debug.Log($"{ToString()}: Called Skip");
|
|
154
|
+
|
|
155
|
+
if (skipping)
|
|
156
|
+
return;
|
|
157
|
+
|
|
158
|
+
if (canSkip)
|
|
159
|
+
LeaveCredits();
|
|
160
|
+
else
|
|
161
|
+
StartCoroutine(ShowTextToSkipCredits());
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/// <summary>
|
|
165
|
+
///
|
|
166
|
+
/// </summary>
|
|
167
|
+
/// <returns></returns>
|
|
168
|
+
protected virtual IEnumerator ShowTextToSkipCredits()
|
|
169
|
+
{
|
|
170
|
+
UnityEngine.Debug.Log($"{ToString()}: Revealing Skip Text.");
|
|
171
|
+
|
|
172
|
+
canSkip = true;
|
|
173
|
+
#if DOTWEEN
|
|
174
|
+
skipText.DOFade(skipTextFadeToValue, skipTextFadeToDuration);
|
|
175
|
+
|
|
176
|
+
yield return new WaitForSecondsRealtime(skipTextFadeToDuration);
|
|
177
|
+
|
|
178
|
+
skipText.DOFade(skipTextFadeOutValue, skipTextFadeOutDuration);
|
|
179
|
+
#endif
|
|
180
|
+
yield return new WaitForSecondsRealtime(skipTextFadeOutDuration);
|
|
181
|
+
|
|
182
|
+
canSkip = false;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
/// <summary>
|
|
187
|
+
///
|
|
188
|
+
/// </summary>
|
|
189
|
+
/// <remarks></remarks>
|
|
190
|
+
public virtual void LeaveCredits() => StartCoroutine(LeaveCreditsRoutine());
|
|
191
|
+
|
|
192
|
+
/// <summary>
|
|
193
|
+
///
|
|
194
|
+
/// </summary>
|
|
195
|
+
/// <returns></returns>
|
|
196
|
+
protected virtual IEnumerator LeaveCreditsRoutine()
|
|
197
|
+
{
|
|
198
|
+
skipping = true;
|
|
199
|
+
|
|
200
|
+
onLeavingCredits.Raise();
|
|
201
|
+
|
|
202
|
+
yield return ServiceLocator.GetService<GlobalFade>().FadeToRoutine(leaveFadeToDuration);
|
|
203
|
+
|
|
204
|
+
SceneManager.LoadSceneAsync(menuScene);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.EventObjects;
|
|
3
|
+
using UnityEngine;
|
|
4
|
+
|
|
5
|
+
namespace DREditor.SplashCredits
|
|
6
|
+
{
|
|
7
|
+
/// <summary>
|
|
8
|
+
///
|
|
9
|
+
/// </summary>
|
|
10
|
+
/// <remarks></remarks>
|
|
11
|
+
public class ForceBoolWithEventUpdate : MonoBehaviour
|
|
12
|
+
{
|
|
13
|
+
/// <summary>
|
|
14
|
+
///
|
|
15
|
+
/// </summary>
|
|
16
|
+
[Tooltip("")]
|
|
17
|
+
[SerializeField] protected BoolWithEvent valueToForce = null;
|
|
18
|
+
|
|
19
|
+
/// <summary>
|
|
20
|
+
///
|
|
21
|
+
/// </summary>
|
|
22
|
+
[Tooltip("")]
|
|
23
|
+
[SerializeField] protected bool forcedValueTo = false;
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
/// <summary>
|
|
27
|
+
///
|
|
28
|
+
/// </summary>
|
|
29
|
+
protected virtual void Awake() => ForceSetValue();
|
|
30
|
+
|
|
31
|
+
/// <summary>
|
|
32
|
+
///
|
|
33
|
+
/// </summary>
|
|
34
|
+
protected virtual void Update() => ForceSetValue();
|
|
35
|
+
|
|
36
|
+
/// <summary>
|
|
37
|
+
///
|
|
38
|
+
/// </summary>
|
|
39
|
+
protected virtual void ForceSetValue() => valueToForce.SetValue(forcedValueTo);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
namespace DREditor.SplashCredits
|
|
3
|
+
{
|
|
4
|
+
/// <summary>
|
|
5
|
+
///
|
|
6
|
+
/// </summary>
|
|
7
|
+
public interface ILoadScreenManager
|
|
8
|
+
{
|
|
9
|
+
/// <summary>
|
|
10
|
+
///
|
|
11
|
+
/// </summary>
|
|
12
|
+
void StartLoadingScreen();
|
|
13
|
+
}
|
|
14
|
+
}
|