修子弹bug

This commit is contained in:
wulongxiao 2024-12-25 17:00:36 +08:00
parent 4eb6e3c01d
commit 6de0047de2

View File

@ -11,7 +11,6 @@ public enum BulletType
Bullet, Bullet,
Lightning, Lightning,
Spraying //Ô­µØÅçÉä Spraying //Ô­µØÅçÉä
} }
public enum BulletAttributes public enum BulletAttributes
{ {
@ -130,9 +129,13 @@ public class Bullet : MonoBehaviour
} }
else else
{ {
NumberOfBulletAttacks -= 1; if (this.myBulletType== BulletType.Spraying)
{
NumberOfBulletAttacks += 1;
} }
NumberOfBulletAttacks -= 1;
foreach (var buff in role.storageBuff) foreach (var buff in role.storageBuff)
{ {
if (!Crole.PlayerBuff.Contains(buff)) if (!Crole.PlayerBuff.Contains(buff))
@ -206,6 +209,9 @@ public class Bullet : MonoBehaviour
} }
} }
}
} }
} }
} }