Class BaseTriggerBehaviour
Inheritance
BaseTriggerBehaviour
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 abstract class BaseTriggerBehaviour : BaseFirearmModuleBehaviour, IFirearmModule, ITrigger, IFirearmModuleValidity, INeoSerializableComponent
Properties
blocked
Declaration
public bool blocked { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
cancelOnReload
Declaration
public virtual bool cancelOnReload { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
isModuleValid
Declaration
public virtual bool isModuleValid { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
pressed
Declaration
public abstract bool pressed { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Methods
Awake()
Declaration
protected override void Awake()
Overrides
Cancel()
Declaration
public virtual void Cancel()
Enable()
Declaration
public override void Enable()
Overrides
FixedTriggerUpdate()
Declaration
protected abstract void FixedTriggerUpdate()
FixedUpdate()
Declaration
protected void FixedUpdate()
OnDisable()
Declaration
protected virtual void OnDisable()
OnEnable()
Declaration
protected virtual void OnEnable()
OnSetBlocked(Boolean)
Declaration
protected virtual void OnSetBlocked(bool to)
Parameters
| Type |
Name |
Description |
| System.Boolean |
to |
|
Press()
Declaration
public virtual void Press()
ReadProperties(INeoDeserializer, NeoSerializedGameObject)
Declaration
public virtual void ReadProperties(INeoDeserializer reader, NeoSerializedGameObject nsgo)
Parameters
Release()
Declaration
public virtual void Release()
Shoot()
Declaration
StartShootContinuous()
Declaration
protected void StartShootContinuous()
StopShootContinuous()
Declaration
protected void StopShootContinuous()
WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)
Declaration
public virtual void WriteProperties(INeoSerializer writer, NeoSerializedGameObject nsgo, SaveMode saveMode)
Parameters
Events
onShoot
Declaration
public event UnityAction onShoot
Event Type
| Type |
Description |
| UnityAction |
|
onShootContinuousChanged
Declaration
public event UnityAction<bool> onShootContinuousChanged
Event Type
| Type |
Description |
| UnityAction<System.Boolean> |
|
onStateChanged
Declaration
public event UnityAction<bool> onStateChanged
Event Type
| Type |
Description |
| UnityAction<System.Boolean> |
|
Implements