public void SelfSwitchMuzzlePoint(PostShotEvent e, WeaponMultyMuzzleNode weaponNode) { MuzzlePointComponent muzzlePoint = weaponNode.muzzlePoint; muzzlePoint.CurrentIndex = (muzzlePoint.CurrentIndex + 1) % muzzlePoint.Points.Length; base.ScheduleEvent(new MuzzlePointSwitchEvent(muzzlePoint.CurrentIndex), weaponNode); }
public void RemoteSwitchMuzzlePoint(RemoteMuzzlePointSwitchEvent e, WeaponMultyMuzzleNode weaponNode) { MuzzlePointComponent muzzlePoint = weaponNode.muzzlePoint; muzzlePoint.CurrentIndex = e.Index % muzzlePoint.Points.Length; }