Made damage affect the player
This commit is contained in:
@@ -10,6 +10,7 @@ namespace InterfaceOff.WorldScene
|
||||
[SerializeField] private GameObject HurtOverlay;
|
||||
[SerializeField] private Slider SliderThing;
|
||||
[SerializeField] private WindowSpawner Spawner;
|
||||
[SerializeField] private GameObject HittyThingThatSkyDidntWantMeToNameItLikeThisAndInsteadNameItPropely;
|
||||
|
||||
[field: SerializeField] public int HitsTaken { get; private set; }
|
||||
|
||||
@@ -24,6 +25,20 @@ namespace InterfaceOff.WorldScene
|
||||
transform.localPosition = pos;
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
float kjjjjgkjdfh = HitsTaken * 5f;
|
||||
kjjjjgkjdfh = Mathf.Clamp(kjjjjgkjdfh, 0f, 100);
|
||||
|
||||
if (!Spawner.AutoSpawn)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
HittyThingThatSkyDidntWantMeToNameItLikeThisAndInsteadNameItPropely.transform.localScale =
|
||||
new Vector3(90, kjjjjgkjdfh, 90);
|
||||
}
|
||||
|
||||
void LateUpdate()
|
||||
{
|
||||
if (Spawner.AutoSpawn)
|
||||
|
||||
Reference in New Issue
Block a user