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

@@ -7,10 +7,10 @@ namespace InterfaceOff
{
private static Vector3[] Positions =
{
new(-45, 45f),
new(45f, 45f),
new(-45, -45),
new(45f, -45)
new(-45, 25f),
new(45f, 25f),
new(-45, -65),
new(45f, -65)
};
private int m_TilesRotatedCorrectly;

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()