Beispiel #1
0
        protected override void CreateBaseComponent()
        {
            base.CreateBaseComponent();
            _weaponEventComponent     = new WeaponEventComponentBase(this);
            _weaponAttributeComponent = new WeaponAttributeComponentBase();

            AddColliderFunction();
        }
Beispiel #2
0
        public override void Dispose()
        {
            _physicalBase.OnColliderEnter -= Collider;
            _aiComponent?.Dispose();
            _aiComponent = null;

            _weaponEventComponent.Dispose();
            _weaponEventComponent = null;

            _weaponAttributeComponent = null;

            base.Dispose();
        }
 public WeaponEventComponentBase(IWeaponBaseComponentContainer weapon, WeaponEventComponentBase clone)
 {
     this.weapon = weapon;
 }