Made the moving windows move

This commit is contained in:
2026-01-14 19:43:20 +00:00
parent 0c43fc1112
commit f10d0bf7ca
7 changed files with 95 additions and 13 deletions

View File

@@ -11,6 +11,9 @@ namespace InterfaceOff
/* Creates a random health value */
m_Health = Random.Range(2, 6);
Components.InfoText.text = $"{m_Health}";
float angle = Random.Range(0, Mathf.PI * 2);
Velocity = new Vector2(Mathf.Cos(angle), Mathf.Sin(angle)) * 100;
}
public override void OnWindowClicked()