Added more accesability text
This commit is contained in:
@@ -458,6 +458,7 @@ RectTransform:
|
|||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 880466087}
|
- {fileID: 880466087}
|
||||||
|
- {fileID: 1822315556}
|
||||||
m_Father: {fileID: 782229191}
|
m_Father: {fileID: 782229191}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
@@ -575,6 +576,11 @@ PrefabInstance:
|
|||||||
propertyPath: Spawner
|
propertyPath: Spawner
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 447617108}
|
objectReference: {fileID: 447617108}
|
||||||
|
- target: {fileID: 582498797338587669, guid: c0a03ce6c4f39224299267b83719ceb7,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: Helajkghfjkhgdfjk
|
||||||
|
value:
|
||||||
|
objectReference: {fileID: 1822315557}
|
||||||
- target: {fileID: 4417313079524746681, guid: c0a03ce6c4f39224299267b83719ceb7,
|
- target: {fileID: 4417313079524746681, guid: c0a03ce6c4f39224299267b83719ceb7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.x
|
propertyPath: m_LocalPosition.x
|
||||||
@@ -1303,7 +1309,7 @@ PrefabInstance:
|
|||||||
m_AddedGameObjects:
|
m_AddedGameObjects:
|
||||||
- targetCorrespondingSourceObject: {fileID: 834552907522022778, guid: e29ce1fe47a855c4e907d4312c9e9d6e,
|
- targetCorrespondingSourceObject: {fileID: 834552907522022778, guid: e29ce1fe47a855c4e907d4312c9e9d6e,
|
||||||
type: 3}
|
type: 3}
|
||||||
insertIndex: 0
|
insertIndex: -1
|
||||||
addedObject: {fileID: 1812575550}
|
addedObject: {fileID: 1812575550}
|
||||||
m_AddedComponents: []
|
m_AddedComponents: []
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: e29ce1fe47a855c4e907d4312c9e9d6e, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: e29ce1fe47a855c4e907d4312c9e9d6e, type: 3}
|
||||||
@@ -1377,7 +1383,7 @@ MonoBehaviour:
|
|||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_Material: {fileID: 0}
|
m_Material: {fileID: 0}
|
||||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
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_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
m_Maskable: 1
|
m_Maskable: 1
|
||||||
m_OnCullStateChanged:
|
m_OnCullStateChanged:
|
||||||
@@ -1420,6 +1426,85 @@ MonoBehaviour:
|
|||||||
m_EffectColor: {r: 0, g: 0, b: 0, a: 1}
|
m_EffectColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
m_EffectDistance: {x: 5, y: -5}
|
m_EffectDistance: {x: 5, y: -5}
|
||||||
m_UseGraphicAlpha: 1
|
m_UseGraphicAlpha: 1
|
||||||
|
--- !u!1 &1822315555
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1822315556}
|
||||||
|
- component: {fileID: 1822315558}
|
||||||
|
- component: {fileID: 1822315557}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: ScoreText (1)
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &1822315556
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1822315555}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 479830775}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 1, y: 1}
|
||||||
|
m_AnchorMax: {x: 1, y: 1}
|
||||||
|
m_AnchoredPosition: {x: -100, y: -40}
|
||||||
|
m_SizeDelta: {x: 160, y: 30}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!114 &1822315557
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1822315555}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, 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_FontData:
|
||||||
|
m_Font: {fileID: 12800000, guid: 76f1829e461ec70459be88ac25ce8be0, type: 3}
|
||||||
|
m_FontSize: 60
|
||||||
|
m_FontStyle: 1
|
||||||
|
m_BestFit: 0
|
||||||
|
m_MinSize: 0
|
||||||
|
m_MaxSize: 90
|
||||||
|
m_Alignment: 5
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 1
|
||||||
|
m_VerticalOverflow: 1
|
||||||
|
m_LineSpacing: 1
|
||||||
|
m_Text: 'Health: 420'
|
||||||
|
--- !u!222 &1822315558
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1822315555}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
--- !u!1 &1909908769
|
--- !u!1 &1909908769
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
|
||||||
namespace InterfaceOff.WorldScene
|
namespace InterfaceOff.WorldScene
|
||||||
{
|
{
|
||||||
@@ -7,11 +8,14 @@ namespace InterfaceOff.WorldScene
|
|||||||
public Transform HealthBarObject;
|
public Transform HealthBarObject;
|
||||||
public WindowSpawner Spawner;
|
public WindowSpawner Spawner;
|
||||||
public LifeThingTrackerThing Thing;
|
public LifeThingTrackerThing Thing;
|
||||||
|
public Text Helajkghfjkhgdfjk;
|
||||||
|
|
||||||
public int Health { get; private set; }
|
public int Health { get; private set; }
|
||||||
|
|
||||||
private void Update()
|
private void Update()
|
||||||
{
|
{
|
||||||
|
Helajkghfjkhgdfjk.text = $"Health: {Health}";
|
||||||
|
|
||||||
Health = ((20 - Thing.HitsTaken) - Spawner.SpawnedWindowCount);
|
Health = ((20 - Thing.HitsTaken) - Spawner.SpawnedWindowCount);
|
||||||
float scale = Mathf.Clamp(Health * 5f, 0f, Mathf.Infinity);
|
float scale = Mathf.Clamp(Health * 5f, 0f, Mathf.Infinity);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user