Ui improvements
This commit is contained in:
parent
98a251ca39
commit
939808589f
|
@ -635,6 +635,8 @@ GameObject:
|
|||
- component: {fileID: 1670233975246388694}
|
||||
- component: {fileID: 6882932966758703109}
|
||||
- component: {fileID: 4279539925778833905}
|
||||
- component: {fileID: 7030678271373066373}
|
||||
- component: {fileID: 8505959815118292765}
|
||||
m_Layer: 5
|
||||
m_Name: GameUI
|
||||
m_TagString: Untagged
|
||||
|
@ -813,6 +815,32 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
WaveDisplayText: {fileID: 5088525294373898032}
|
||||
--- !u!114 &7030678271373066373
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 715023913428069073}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8a96a285a13e000478efa8b2eb2a2f2b, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
animator: {fileID: 4879621611803338699}
|
||||
--- !u!114 &8505959815118292765
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 715023913428069073}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4808c7ff06ecb6544a1ba00afe62e293, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
TargetImage: {fileID: 8016028299623956032}
|
||||
--- !u!1 &916661619396280674
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -1069,7 +1097,7 @@ MonoBehaviour:
|
|||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: Return
|
||||
m_text: Main menu
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 42d854f0b5fb38c4f81f6d3dbf7f1a2c, type: 2}
|
||||
m_sharedMaterial: {fileID: -351613383617831628, guid: 42d854f0b5fb38c4f81f6d3dbf7f1a2c,
|
||||
|
@ -1079,8 +1107,8 @@ MonoBehaviour:
|
|||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
rgba: 4288322202
|
||||
m_fontColor: {r: 0.6037736, g: 0.6037736, b: 0.6037736, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
|
@ -3299,6 +3327,18 @@ MonoBehaviour:
|
|||
m_StringArgument:
|
||||
m_BoolArgument: 0
|
||||
m_CallState: 2
|
||||
- m_Target: {fileID: 7030678271373066373}
|
||||
m_TargetAssemblyTypeName: StopAnimationOnClick, Assembly-CSharp
|
||||
m_MethodName: OnClick
|
||||
m_Mode: 1
|
||||
m_Arguments:
|
||||
m_ObjectArgument: {fileID: 0}
|
||||
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
|
||||
m_IntArgument: 0
|
||||
m_FloatArgument: 0
|
||||
m_StringArgument:
|
||||
m_BoolArgument: 0
|
||||
m_CallState: 2
|
||||
--- !u!111 &1113587299268381471
|
||||
Animation:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -3456,7 +3496,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 106.56448, y: -971.9}
|
||||
m_AnchoredPosition: {x: 106.56448, y: -990.6515}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8622396985485827187
|
||||
|
@ -3660,7 +3700,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 84, y: -182}
|
||||
m_AnchoredPosition: {x: 111.31256, y: -182}
|
||||
m_SizeDelta: {x: 200, y: 100}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!114 &1924606167970031342
|
||||
|
@ -4257,7 +4297,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 1, y: 1}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 3, y: 10.1}
|
||||
m_AnchoredPosition: {x: 13.875061, y: 10.1}
|
||||
m_SizeDelta: {x: 40, y: 40}
|
||||
m_Pivot: {x: 1, y: 1}
|
||||
--- !u!222 &3926771864027126130
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,19 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class ShowWaveAutoState : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private RawImage TargetImage;
|
||||
|
||||
void Update()
|
||||
{
|
||||
bool state = EnemySpawnManager.Instance.IsAutoPlaying;
|
||||
|
||||
if (state)
|
||||
TargetImage.color = Color.green;
|
||||
else
|
||||
TargetImage.color = default;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4808c7ff06ecb6544a1ba00afe62e293
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -7,7 +7,7 @@ public class StartSceneTransition : MonoBehaviour
|
|||
void Start()
|
||||
{
|
||||
SpriteRenderer sp = GetComponent<SpriteRenderer>();
|
||||
sp.enabled = false;
|
||||
sp.enabled = true;
|
||||
|
||||
animator = GetComponent<Animator>();
|
||||
animator.SetTrigger("start1");
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class StopAnimationOnClick : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private Animator animator;
|
||||
|
||||
public void OnClick()
|
||||
{
|
||||
animator.SetBool("Clicked", true);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8a96a285a13e000478efa8b2eb2a2f2b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Reference in New Issue