Page 360 - MDP2022-3
P. 360
}
void Update() //게임실행후 계속 반복되는 클래스
{
Move();
Fire();
Boom();
Relode();
}
void Relode()
{
curshortDelay += Time.deltaTime;
}
void Boom() //플레이어 필살기
{
if (!isButtonB)
return;
if (boomTime)
return;
if (boom == 0)
return;
boom--;
GameManager.UpdateBoomIcon(boom);
BoomEffect.SetActive(true);
boomTime = true;
onBoom();
Invoke("offBoom", 4f);
}
public void ButtonADown()
{
isButtonA = true;
}
public void ButtonAUp()
{
isButtonB = false;
}
public void ButtonBDown()
{
isButtonB = true;