コード例 #1
0
 IEnumerator FireLazerBulletsImpl(int countOfWaves)
 {
     for (int i = 0; i < countOfWaves; i++)
     {
         bulletsPond.getLazerBullet().transform.position = lazerSlot1.position;
         bulletsPond.getLazerBullet().transform.position = lazerSlot2.position;
         yield return(new WaitForSeconds(0.2f));
     }
 }
コード例 #2
0
 void Fire()
 {
     if (bulletType == BulletType.CIRCLE_BULLET)
     {
         CircleBulletArg arg = new CircleBulletArg(-1, 5, true);
         bulletsPond.getCircleBullet(arg).transform.position = weaponSlot.position;
         arg.seqNum = 1;
         bulletsPond.getCircleBullet(arg).transform.position = weaponSlot.position;
     }
     else
     {
         bulletsPond.getLazerBullet().transform.position = weaponSlot.position;
     }
 }