在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