C# Class Gameplay.Unit.Attack.BaseBullet

Inheritance: UnityEngine.MonoBehaviour
Show file Open project: badawe/GameStartUP Class Usage Examples

Protected Properties

Property Type Description
baseWeapon Gameplay.Unit.Attack.BaseWeapon
layerMask UnityEngine.LayerMask
weaponDefinition Gameplay.Unit.Attack.WeaponDefinition

Public Methods

Method Description
Initialize ( Gameplay.Unit.Attack.BaseWeapon targetBaseWeapon ) : void

Protected Methods

Method Description
ApplyEffect ( IHitByBullet affectedObjects, Vector3 point ) : void
DestroyBullet ( float afterSeconds ) : void

Private Methods

Method Description
DestroyBulletAfterSecondsCoroutine ( float seconds ) : IEnumerator

Method Details

ApplyEffect() protected method

protected ApplyEffect ( IHitByBullet affectedObjects, Vector3 point ) : void
affectedObjects IHitByBullet
point UnityEngine.Vector3
return void

DestroyBullet() protected method

protected DestroyBullet ( float afterSeconds ) : void
afterSeconds float
return void

Initialize() public method

public Initialize ( Gameplay.Unit.Attack.BaseWeapon targetBaseWeapon ) : void
targetBaseWeapon Gameplay.Unit.Attack.BaseWeapon
return void

Property Details

baseWeapon protected property

protected BaseWeapon,Gameplay.Unit.Attack baseWeapon
return Gameplay.Unit.Attack.BaseWeapon

layerMask protected property

protected LayerMask,UnityEngine layerMask
return UnityEngine.LayerMask

weaponDefinition protected property

protected WeaponDefinition,Gameplay.Unit.Attack weaponDefinition
return Gameplay.Unit.Attack.WeaponDefinition