protected override void _OnTarget(Gunner target, Vector3 hitPos) { SpaceShipCtrl _target = target as SpaceShipCtrl; if (_target != null) { if (_target.SpaceShipType == MobType.ZombieShip || _target.SpaceShipType == MobType.BattleShip || _target.SpaceShipType == MobType.GhostShip) { PlayEffect(m_effect_explosion, hitPos); target.Hit(m_damage * m_damageScaleToKing); gameObject.SetActive(false); } else { base._OnTarget(target, hitPos); } } else { base._OnTarget(target, hitPos); } }
protected virtual void _OnShield(Gunner target, Vector3 hitPos) { PlayEffect(m_effect_shieldHit, hitPos); target.Hit(m_damage); gameObject.SetActive(false); }
protected virtual void _OnTargetByRayCast(Gunner target, Vector3 hitPos) { PlayEffect(m_effect_explosion, hitPos); target.Hit(m_damage); }
protected virtual void _OnTarget(Gunner target, Vector3 hitPos) { PlayEffect(m_effect_explosion, hitPos); target.Hit(m_damage); gameObject.SetActive(false); }
protected override void _OnTargetByRayCast(Gunner target, Vector3 hitPos) { PlayEffect(Effect.Explosion2, hitPos); target.Hit(m_damage); }