Код: Выделить всё
private void Start()
{
while (Input.GetButton("Fire1"))
{
Shoot();
StartCoroutine(Delay());
}
}
Подробнее здесь: https://stackoverflow.com/questions/764 ... ty-c-sharp
Код: Выделить всё
private void Start()
{
while (Input.GetButton("Fire1"))
{
Shoot();
StartCoroutine(Delay());
}
}