⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    Class WieldableLaserPointer

    Inheritance
    Object
    MonoBehaviour
    WieldableLaserPointer
    Implements
    IWieldableFlashlight
    ILaserPointer
    INeoSerializableComponent
    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()
    Namespace: NeoFPS
    Assembly: NeoFPS.dll
    Syntax
    public class WieldableLaserPointer : MonoBehaviour, IWieldableFlashlight, ILaserPointer, INeoSerializableComponent

    Properties

    brightness

    Declaration
    public float brightness { get; set; }
    Property Value
    Type Description
    System.Single

    laserColor

    Declaration
    public Color laserColor { get; set; }
    Property Value
    Type Description
    Color

    on

    Declaration
    public bool on { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    Awake()

    Declaration
    protected void Awake()

    CheckDoesHit(out Vector3)

    Declaration
    public bool CheckDoesHit(out Vector3 hitPoint)
    Parameters
    Type Name Description
    Vector3 hitPoint
    Returns
    Type Description
    System.Boolean

    LateUpdate()

    Declaration
    protected void LateUpdate()

    OnDestroy()

    Declaration
    protected void OnDestroy()

    OnDisable()

    Declaration
    protected void OnDisable()

    OnEnable()

    Declaration
    protected void OnEnable()

    OnValidate()

    Declaration
    protected void OnValidate()

    ReadProperties(INeoDeserializer, NeoSerializedGameObject)

    Declaration
    public void ReadProperties(INeoDeserializer reader, NeoSerializedGameObject nsgo)
    Parameters
    Type Name Description
    INeoDeserializer reader
    NeoSerializedGameObject nsgo

    Start()

    Declaration
    protected void Start()

    Toggle()

    Declaration
    public void Toggle()

    WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)

    Declaration
    public void WriteProperties(INeoSerializer writer, NeoSerializedGameObject nsgo, SaveMode saveMode)
    Parameters
    Type Name Description
    INeoSerializer writer
    NeoSerializedGameObject nsgo
    SaveMode saveMode

    Events

    onToggleOff

    Declaration
    public event UnityAction onToggleOff
    Event Type
    Type Description
    UnityAction

    onToggleOn

    Declaration
    public event UnityAction onToggleOn
    Event Type
    Type Description
    UnityAction

    Implements

    IWieldableFlashlight
    ILaserPointer
    INeoSerializableComponent
    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX