Синтаксис:
Используется csharp
public static int CountBall = 4;
public Text CountBallText;
public AnimationFormsUI PanelResult;
public GameObject SpawnDestroy;
void Update()
{
TapsCounter();
}
public void ClickBalloonRed()
{
CountBallText.text = CountBall-- + "шт";
Destroy(this.gameObject);
}
void TapsCounter()
{
if (CountBall == -1)
{
Destroy(SpawnDestroy);
PanelResult.EnableBoolInAnimatorResult();
}
}
public Text CountBallText;
public AnimationFormsUI PanelResult;
public GameObject SpawnDestroy;
void Update()
{
TapsCounter();
}
public void ClickBalloonRed()
{
CountBallText.text = CountBall-- + "шт";
Destroy(this.gameObject);
}
void TapsCounter()
{
if (CountBall == -1)
{
Destroy(SpawnDestroy);
PanelResult.EnableBoolInAnimatorResult();
}
}