Made windowspawner keep track of spawned window count
This commit is contained in:
@@ -12,10 +12,5 @@ namespace InterfaceOff
|
||||
Components.InfoText.text = advert.Name;
|
||||
Components.WindowImage.color = new Color(1, 1, 1, 1);
|
||||
}
|
||||
|
||||
public override void OnWindowCloseButtonClicked()
|
||||
{
|
||||
Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -63,7 +63,7 @@ namespace InterfaceOff
|
||||
{
|
||||
if (m_TilesRotatedCorrectly == 4)
|
||||
{
|
||||
Destroy(gameObject);
|
||||
DestroyWindow();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,10 +16,5 @@ namespace InterfaceOff
|
||||
float angle = Random.Range(0, Mathf.PI * 2);
|
||||
Velocity = new Vector2(Mathf.Cos(angle), Mathf.Sin(angle)) * 100;
|
||||
}
|
||||
|
||||
public override void OnWindowCloseButtonClicked()
|
||||
{
|
||||
Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user