1.public class Kit_PvE_ZombieWaveSurvival_DropFullAmmo : Kit_PvE_ZombieWaveSurvival_DropBase
2. {
3. public override void DropPickedUp(Kit_IngameMain main, int id)
4 {
5 base.DropPickedUp(main, id);
6
7 for (int i = 0; i < main.allActivePlayers.Count; i++)
8 {
9 main.allActivePlayers.weaponManager.RestockAmmo(main.allActivePlayers, true);
10 }
11 }
12 }
ช่วยอธิบายบรรทัดที่3-9ให้หน่อยค่ะ
2. {
3. public override void DropPickedUp(Kit_IngameMain main, int id)
4 {
5 base.DropPickedUp(main, id);
6
7 for (int i = 0; i < main.allActivePlayers.Count; i++)
8 {
9 main.allActivePlayers.weaponManager.RestockAmmo(main.allActivePlayers, true);
10 }
11 }
12 }