0902名無しオンライン (ワッチョイ 7af8-xMbA)
2018/01/03(水) 13:35:20.84ID:ox0GH0Fw0void Update ()
{
timer += Time.deltaTime;
if (Input.GetButton("Fire1") && timer >= timeBetweenBullets && Time.timeScale != 0)
{
Shoot();
animator.SetBool("Shot", true); ←ここ
}
if(timer >= timeBetweenBullets * effectsDisplayTime)
{
DisableEffects ();
}
}
public void DisableEffects ()
{
gunLine.enabled = false;
gunLight.enabled = false;
}