Commit 048c13c5 authored by radow's avatar radow
Browse files

levelnames & fade

parent 7d26397e
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class Fader : MonoBehaviour
{
public TextMeshProUGUI text;
public Image img;
private void Start()
{
originalimg = img.color;
originaltext = text.color;
}
public Color originalimg;
public Color originaltext;
public float delay = 4;
public float duration = 1;
float progress;
void Update()
{
delay -= Time.deltaTime;
if(delay < 0)
{
progress += Time.deltaTime;
Color c = originaltext;
c.a = originaltext.a * (1- progress / duration);
text.color = c;
c = originalimg;
c.a = originalimg.a * (1- progress / duration);
img.color = c;
if (progress > duration) enabled = false;
}
}
}
fileFormatVersion: 2
guid: 0c7e1c9bfc0b2204f83de17c989d9ebd
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
......@@ -225,6 +225,82 @@ MonoBehaviour:
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &1708664975055867179
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5164231250505920994}
- component: {fileID: 3197387366681105515}
- component: {fileID: 552274994949688664}
m_Layer: 5
m_Name: Image
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &5164231250505920994
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1708664975055867179}
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: 6691909644182821639}
m_Father: {fileID: 2500070006312039796}
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 203.12015}
m_Pivot: {x: 0.5, y: 0}
--- !u!222 &3197387366681105515
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1708664975055867179}
m_CullTransparentMesh: 0
--- !u!114 &552274994949688664
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1708664975055867179}
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, g: 0, b: 0, a: 1}
m_RaycastTarget: 1
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 &2500070006304092307
GameObject:
m_ObjectHideFlags: 0
......@@ -397,6 +473,7 @@ RectTransform:
- {fileID: 2500070006552871390}
- {fileID: 2771154599995883652}
- {fileID: 2534767040068508667}
- {fileID: 5164231250505920994}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
......@@ -1236,6 +1313,159 @@ MonoBehaviour:
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &4931540616125801265
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6691909644182821639}
- component: {fileID: 8998630185368708540}
- component: {fileID: 4607643634889443491}
- component: {fileID: 7036508310289871467}
m_Layer: 5
m_Name: Levelname
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6691909644182821639
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4931540616125801265}
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: 5164231250505920994}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: -0.00012207031, y: 200}
m_Pivot: {x: 0.5, y: 0}
--- !u!222 &8998630185368708540
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4931540616125801265}
m_CullTransparentMesh: 0
--- !u!114 &4607643634889443491
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4931540616125801265}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: Twisted Castle
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 50
m_fontSizeBase: 50
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 1
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 2.80542, y: 2.4259644, z: -0.55859375, w: 8}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!114 &7036508310289871467
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4931540616125801265}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0c7e1c9bfc0b2204f83de17c989d9ebd, type: 3}
m_Name:
m_EditorClassIdentifier:
text: {fileID: 4607643634889443491}
img: {fileID: 552274994949688664}
originalimg: {r: 0, g: 0, b: 0, a: 0}
originaltext: {r: 0, g: 0, b: 0, a: 0}
delay: 4
duration: 1
--- !u!1 &5123935694706923799
GameObject:
m_ObjectHideFlags: 0
......
......@@ -3747,6 +3747,10 @@ PrefabInstance:
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4607643634889443491, guid: 2849d7721ea0eca459768527dd491c7d, type: 3}
propertyPath: m_text
value: The Cell
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2849d7721ea0eca459768527dd491c7d, type: 3}
--- !u!1001 &2711521991514026612
......
......@@ -194,7 +194,7 @@ PrefabInstance:
m_Modifications:
- target: {fileID: 2500070005643519142, guid: 2849d7721ea0eca459768527dd491c7d, type: 3}
propertyPath: m_text
value:
value: Press RETURN to return to the Main Menu
objectReference: {fileID: 0}
- target: {fileID: 2500070006312039752, guid: 2849d7721ea0eca459768527dd491c7d, type: 3}
propertyPath: m_Name
......@@ -294,7 +294,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 2500070007356703663, guid: 2849d7721ea0eca459768527dd491c7d, type: 3}
propertyPath: m_text
value: You have finished this Alpha Version
value: You have escaped the city!
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2849d7721ea0eca459768527dd491c7d, type: 3}
......
......@@ -365,6 +365,10 @@ PrefabInstance:
propertyPath: m_text
value:
objectReference: {fileID: 0}
- target: {fileID: 4607643634889443491, guid: 2849d7721ea0eca459768527dd491c7d, type: 3}
propertyPath: m_text
value: Hallways
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2849d7721ea0eca459768527dd491c7d, type: 3}
--- !u!1001 &75234616
......
......@@ -30659,6 +30659,10 @@ PrefabInstance:
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4607643634889443491, guid: 2849d7721ea0eca459768527dd491c7d, type: 3}
propertyPath: m_text
value: Wine Cellar
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2849d7721ea0eca459768527dd491c7d, type: 3}
--- !u!1 &278146355
......@@ -2121,6 +2121,10 @@ PrefabInstance:
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4607643634889443491, guid: 2849d7721ea0eca459768527dd491c7d, type: 3}
propertyPath: m_text
value: Clock Tower
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2849d7721ea0eca459768527dd491c7d, type: 3}
--- !u!1 &963194225
......
......@@ -303,6 +303,10 @@ PrefabInstance:
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4607643634889443491, guid: 2849d7721ea0eca459768527dd491c7d, type: 3}
propertyPath: m_text
value: Training Room
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2849d7721ea0eca459768527dd491c7d, type: 3}
--- !u!1001 &118854803
......
......@@ -295,6 +295,10 @@ PrefabInstance:
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4607643634889443491, guid: 2849d7721ea0eca459768527dd491c7d, type: 3}
propertyPath: m_text
value: Taking A Leap
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2849d7721ea0eca459768527dd491c7d, type: 3}
--- !u!1 &28295265
......@@ -376,6 +376,10 @@ PrefabInstance:
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4607643634889443491, guid: 2849d7721ea0eca459768527dd491c7d, type: 3}
propertyPath: m_text
value: Under City
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2849d7721ea0eca459768527dd491c7d, type: 3}
--- !u!1001 &22305338
......@@ -22632,6 +22636,7 @@ MonoBehaviour:
arrivalAnchor: {fileID: 1007755399}
associatedPortal: {fileID: 7200871748962837551}
refillStepsOnArrival: 1
auds: {fileID: 0}
active: 0
--- !u!23 &1856547752
MeshRenderer:
......
......@@ -5239,6 +5239,10 @@ PrefabInstance:
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4607643634889443491, guid: 2849d7721ea0eca459768527dd491c7d, type: 3}
propertyPath: m_text
value: Inner Sanctum
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2849d7721ea0eca459768527dd491c7d, type: 3}
--- !u!1 &28157843
......@@ -226,6 +226,10 @@ PrefabInstance:
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4607643634889443491, guid: 2849d7721ea0eca459768527dd491c7d, type: 3}
propertyPath: m_text
value: Throne Room
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2849d7721ea0eca459768527dd491c7d, type: 3}
--- !u!1 &26790024
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment