//Function called externally from Weapon.cs to set this projectile's attacker ID and forward direction public virtual void SetProjectileInfo(AttackerID projectileID_) { //Setting the ID of the attacker that fired this projectile this.attackerID = projectileID_; //Setting our velocity this.GetComponent <Rigidbody>().velocity = this.gameObject.transform.forward * this.forwardVelocity; }
//Function inherited from WeaponProjectile.cs to set this projectile's attack ID public override void SetProjectileInfo(AttackerID projectileID_) { base.SetProjectileInfo(projectileID_); }