protected override void CreateBaseComponent() { base.CreateBaseComponent(); _weaponEventComponent = new WeaponEventComponentBase(this); _weaponAttributeComponent = new WeaponAttributeComponentBase(); AddColliderFunction(); }
public WeaponAttributeComponentBase(WeaponAttributeComponentBase clone) { this.bulletnum = clone.bulletnum; this.weanpontype = clone.weanpontype; this.maxbulletnum = clone.maxbulletnum; this.lifetime = clone.lifetime; this.weaponcd = clone.weaponcd; this.weaponDamage = clone.weaponDamage; this.OwnerActorId = clone.OwnerActorId; //Log.Trace("WeaponAttributeComponent:weaponcd" + weaponcd); }
public override void Dispose() { _physicalBase.OnColliderEnter -= Collider; _aiComponent?.Dispose(); _aiComponent = null; _weaponEventComponent.Dispose(); _weaponEventComponent = null; _weaponAttributeComponent = null; base.Dispose(); }