public override void Update(bool highlighted)
{
base.Update(highlighted);
if (highlighted)
{
if (!this.previouslyHighlighed)
{
this.previouslyHighlighed = true;
this.UpdateTValues();
}
if (GameWorld.controller.ContainsBool(ActionType.SelectionRight))
{
this.ChangeVolume(1);
this.UpdateTValues();
}
if (GameWorld.controller.ContainsBool(ActionType.SelectionLeft))
{
this.ChangeVolume(-1);
this.UpdateTValues();
}
}
else
{
if (previouslyHighlighed)
{
this.previouslyHighlighed = false;
this.Disappear();
}
}
foreach (tVector2 tv2 in this.positions)
{
tv2.Update();
}
foreach (tfloat tf in this.scales)
{
tf.Update();
}
}