Made the moving windows move
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user