Commit cd847447 authored by Alexander Brendel's avatar Alexander Brendel
Browse files

Addded EndlessMode Sprite to endscreen

parent b03e98fd
fileFormatVersion: 2
guid: 3b4b6c6fcd8da9c42a0e13deb21bc264
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 7
mipmaps:
mipMapMode: 0
enableMipMap: 0
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
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: 1
wrapV: 1
wrapW: -1
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: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 2
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
- serializedVersion: 2
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
vertices: []
indices:
edges: []
weights: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
......@@ -651,8 +651,10 @@ MonoBehaviour:
endscreenCanvas: {fileID: 225643532074205228}
flashCanvas: {fileID: 225465615972781408}
backgroundImage: {fileID: 114144737837644306}
endlessMode: {fileID: 11400000, guid: 6f82e365a1c02ed44959d35ff56991a8, type: 2}
victorySprite: {fileID: 21300000, guid: bcfa6c2dffc23b645a66d84e864376af, type: 3}
failureSprite: {fileID: 21300000, guid: c0ca27f254ac4be4abf289baf8c90a92, type: 3}
endlessSprite: {fileID: 21300000, guid: 3b4b6c6fcd8da9c42a0e13deb21bc264, type: 3}
victoryFlashInTime: 0.1
victoryFlashHoldTime: 0.2
victoryFlashOutTime: 2
......
using System.Collections;
using RoboRyanTron.Unite2017.Variables;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
......@@ -11,9 +12,12 @@ public class EndScreenController : MenuController {
[SerializeField] private CanvasGroup flashCanvas;
[SerializeField] private Image backgroundImage;
[SerializeField] private BoolVariable endlessMode;
[Header("Image Settings")]
[SerializeField] private Sprite victorySprite;
[SerializeField] private Sprite failureSprite;
[SerializeField] private Sprite endlessSprite;
[Header("Victory Config")]
[SerializeField] private float victoryFlashInTime;
......@@ -49,7 +53,7 @@ public class EndScreenController : MenuController {
public void Show(bool victory) {
GameManager.Instance.AllowPauseMenu = false;
backgroundImage.sprite = victory ? victorySprite : failureSprite;
backgroundImage.sprite = victory ? victorySprite : endlessMode.Value ? endlessSprite : failureSprite;
StartCoroutine(victory ? ShowVictoryScreen() : ShowDefeatScreen());
}
......
Supports Markdown
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