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

            _weaponEventComponent.Dispose();
            _weaponEventComponent = null;

            _weaponAttributeComponent = null;

            base.Dispose();
        }
        public override void Dispose()
        {
            _physicalBase.OnColliderEnter -= Collider;
            _aiComponent?.Dispose();
            _aiComponent = null;

            _fireControlComponent.Dispose();
            _fireControlComponent = null;

            _healthShieldComponent = null;

            _shipEventComponent = null;

            base.Dispose();
        }
 public void CreateAiComponent(AIComponentBase ai)
 {
     _aiComponent = ai;
 }
 public void CreateAiComponent(AIComponentBase aIComponentBase)
 {
     this.aIComponentBase = aIComponentBase;
 }
 protected AIComponentBase(AIComponentBase clone, IBaseComponentContainer container)
 {
     this.container = container;
     this.isPause   = clone.isPause;
 }