示例#1
0
        public bool IsFiring(ShipWeapon weapon)
        {
            if (weapon == null)
            {
                return(false);
            }

            return(weapon.IsFiring());
        }
示例#2
0
        public bool IsInFireArc(ShipWeapon weapon, GameObject target)
        {
            if (weapon == null)
            {
                return(false);
            }

            return(weapon.IsInFireArc(target, this.transform));
        }
示例#3
0
        public void FireAt(ShipWeapon weapon, GameObject target = null)
        {
            if (weapon == null)
            {
                return;
            }

            weapon.FireAt(target);
        }
示例#4
0
        public void StopFiring(ShipWeapon weapon)
        {
            if (weapon == null)
            {
                return;
            }

            weapon.StopFiring();
        }
示例#5
0
        public void LoadWeapon(ShipWeapon weapon)
        {
            if (weapon == null)
            {
                return;
            }

            weapon.LoadWeapon();

            if (this.Reticle != null)
            {
                this.Reticle.SetScale(weapon.GetReticleSize());
            }
            this.LoadedWeapon = weapon;
        }