예제 #1
0
        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);
        }
예제 #2
0
        public void RemoteSwitchMuzzlePoint(RemoteMuzzlePointSwitchEvent e, WeaponMultyMuzzleNode weaponNode)
        {
            MuzzlePointComponent muzzlePoint = weaponNode.muzzlePoint;

            muzzlePoint.CurrentIndex = e.Index % muzzlePoint.Points.Length;
        }