public void Decorating_weapon_with_sight_object() { var simpleWeapon = new BaseWeapon(); var weaponWithSight = new WeaponSight(simpleWeapon); Assert.Equal("This is the base weapon! Sight added!", weaponWithSight.Mount()); }
public void MoveToEyeSight() { CurrentWeaponSight = WeaponSight.Eye; _previousPosition = transform.localPosition; _previousRotation = transform.localRotation.eulerAngles; IsInAction = true; }
public void RestoreSight() { CurrentWeaponSight = WeaponSight.Hip; _previousPosition = EyeSigthPosition; _previousRotation = EyeSightRotation; IsInAction = true; }
public abstract void SpawnItem(WeaponType type, float Ammo, WeaponSight Sight, WeaponBarrel Barrel, WeaponOther Other, Vector pos, Vector rotation);
private void Start() { _originalPosition = transform.localPosition; _originalRotation = transform.localRotation.eulerAngles; CurrentWeaponSight = WeaponSight.Hip; }