jjzjj

equippedGun

全部标签

c# - 不知道如何在 Unity3D 中使用协程

在Unity3D中,这是我的代码:voidActivateBuff1(){gun.equippedGun.msPerShot/=2;gun.equippedGun.shotsLeftInMag+=10;StartCoroutine(WaitRage());}voidActivateBuff2(){player.speedModifier*=1.5f;StartCoroutine(WaitSpeed());}IEnumeratorWaitRage(){yieldreturnnewWaitForSeconds(powerUpDuration);gun.equippedGun.msPerSh