Ejemplo n.º 1
0
 /// <summary>
 /// Initialises the weapon on start.
 /// </summary>
 public override void InitialiseWeapon(WeaponInfo data, IEntitySpeed movementAccessors)
 {
     this.weaponData        = data;
     this.movementAccessors = movementAccessors;
     this.weaponTransform   = this.transform;
     this.tag = transform.root.tag;
 }
        private void InitialiseWeapons()
        {
            if (weapons.Length == 0)
            {
                return;
            }

            IEntitySpeed entitytSpeed = this.GetComponent <IEntitySpeed>();

            foreach (IWeapon weapon in weapons)
            {
                // TODO: data needs to be implemented fgor the controller
                // TODO: movement accessors needs to be changed for global recognition;

                weapon.InitialiseWeapon(weaponData, entitytSpeed);
                weapon.ConfigureWeaponPositioning(LoadoutConfiguration.Pivot);
            }
        }
Ejemplo n.º 3
0
 public override void InitialiseWeapon(WeaponInfo data, IEntitySpeed movementAccessors)
 {
 }
Ejemplo n.º 4
0
 public abstract void InitialiseWeapon(WeaponInfo data, IEntitySpeed movementAccessors);