Beispiel #1
0
 private void Shot()
 {
     //initEffect (GunEffect);
     if (isPlayerHasWeapon)
     {
         if (isWeaponHasAmmo)
         {
             initPrefab(BulletPrefab, new Vector3(0, -0.05f, 0));
             GameAttribute.clipUpdate();
             getAuidoByWeaponIndex(GameData.getCurrentWeaponIndex());
         }
     }
 }