Interface IProjectile
Assembly: NeoFPS.dll
Syntax
public interface IProjectile
Properties
gameObject
Declaration
GameObject gameObject { get; }
Property Value
| Type |
Description |
| GameObject |
|
Methods
Declaration
void Fire(Vector3 position, Vector3 velocity, float gravity, IAmmoEffect effect, Transform ignoreRoot, LayerMask layers, IDamageSource damageSource = null, bool wait1 = false)
Parameters
| Type |
Name |
Description |
| Vector3 |
position |
|
| Vector3 |
velocity |
|
| System.Single |
gravity |
|
| IAmmoEffect |
effect |
|
| Transform |
ignoreRoot |
|
| LayerMask |
layers |
|
| IDamageSource |
damageSource |
|
| System.Boolean |
wait1 |
|
Teleport(Vector3, Quaternion, Boolean)
Declaration
void Teleport(Vector3 position, Quaternion rotation, bool relativeRotation = true)
Parameters
| Type |
Name |
Description |
| Vector3 |
position |
|
| Quaternion |
rotation |
|
| System.Boolean |
relativeRotation |
|
Events
onHit
Declaration
Event Type
| Type |
Description |
| UnityAction |
|
onTeleported
Declaration
event UnityAction onTeleported
Event Type
| Type |
Description |
| UnityAction |
|