Class GuidedBallisticProjectile
Inheritance
GuidedBallisticProjectile
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: NeoFPS.dll
Syntax
public class GuidedBallisticProjectile : MonoBehaviour, IProjectile, INeoSerializableComponent, IOriginShiftSubscriber
Properties
distanceTravelled
Declaration
public float distanceTravelled { get; }
Property Value
| Type |
Description |
| System.Single |
|
Methods
ApplyOffset(Vector3)
Declaration
public void ApplyOffset(Vector3 offset)
Parameters
| Type |
Name |
Description |
| Vector3 |
offset |
|
Awake()
Declaration
protected virtual void Awake()
Declaration
public virtual 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 |
|
FixedUpdate()
Declaration
protected void FixedUpdate()
OnDisable()
Declaration
protected virtual void OnDisable()
OnEnable()
Declaration
protected virtual void OnEnable()
OnHit()
Declaration
protected virtual void OnHit()
OnValidate()
Declaration
protected virtual void OnValidate()
ReadProperties(INeoDeserializer, NeoSerializedGameObject)
Declaration
public virtual void ReadProperties(INeoDeserializer reader, NeoSerializedGameObject nsgo)
Parameters
Teleport(Vector3, Quaternion, Boolean)
Declaration
public void Teleport(Vector3 position, Quaternion rotation, bool relativeRotation = true)
Parameters
| Type |
Name |
Description |
| Vector3 |
position |
|
| Quaternion |
rotation |
|
| System.Boolean |
relativeRotation |
|
WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)
Declaration
public virtual void WriteProperties(INeoSerializer writer, NeoSerializedGameObject nsgo, SaveMode saveMode)
Parameters
Events
onHit
Declaration
public event UnityAction onHit
Event Type
| Type |
Description |
| UnityAction |
|
onTeleported
Declaration
public event UnityAction onTeleported
Event Type
| Type |
Description |
| UnityAction |
|
Implements