⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    Class WaypointMovingPlatform

    Inheritance
    Object
    MonoBehaviour
    BaseMovingPlatform
    WaypointMovingPlatform
    Implements
    IMovingPlatform
    IMonoBehaviour
    INeoSerializableComponent
    IOriginShiftSubscriber
    Inherited Members
    BaseMovingPlatform.fixedPosition
    BaseMovingPlatform.previousPosition
    BaseMovingPlatform.fixedRotation
    BaseMovingPlatform.previousRotation
    BaseMovingPlatform.localTransform
    BaseMovingPlatform.attachedRigidbody
    BaseMovingPlatform.Awake()
    BaseMovingPlatform.OnDestroy()
    BaseMovingPlatform.Start()
    BaseMovingPlatform.FixedUpdate()
    BaseMovingPlatform.PreFixedUpdate()
    BaseMovingPlatform.PostFixedUpdate()
    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 WaypointMovingPlatform : BaseMovingPlatform, IMovingPlatform, IMonoBehaviour, INeoSerializableComponent, IOriginShiftSubscriber

    Properties

    waypoints

    Declaration
    public WaypointMovingPlatform.Waypoint[] waypoints { get; }
    Property Value
    Type Description
    WaypointMovingPlatform.Waypoint[]

    Methods

    ApplyOffset(Vector3)

    Declaration
    public override void ApplyOffset(Vector3 offset)
    Parameters
    Type Name Description
    Vector3 offset
    Overrides
    BaseMovingPlatform.ApplyOffset(Vector3)

    GetNextPosition()

    Declaration
    protected override Vector3 GetNextPosition()
    Returns
    Type Description
    Vector3
    Overrides
    BaseMovingPlatform.GetNextPosition()

    GetNextRotation()

    Declaration
    protected override Quaternion GetNextRotation()
    Returns
    Type Description
    Quaternion
    Overrides
    BaseMovingPlatform.GetNextRotation()

    GetStartingPosition()

    Declaration
    protected override Vector3 GetStartingPosition()
    Returns
    Type Description
    Vector3
    Overrides
    BaseMovingPlatform.GetStartingPosition()

    GetStartingRotation()

    Declaration
    protected override Quaternion GetStartingRotation()
    Returns
    Type Description
    Quaternion
    Overrides
    BaseMovingPlatform.GetStartingRotation()

    GoToEnd()

    Declaration
    public void GoToEnd()

    GoToOppositeEnd()

    Declaration
    public void GoToOppositeEnd()

    GoToStart()

    Declaration
    public void GoToStart()

    GoToWaypoint(Int32)

    Declaration
    public void GoToWaypoint(int index)
    Parameters
    Type Name Description
    System.Int32 index

    GoToWaypoint(Int32, Boolean)

    Declaration
    public void GoToWaypoint(int index, bool direct)
    Parameters
    Type Name Description
    System.Int32 index
    System.Boolean direct

    Initialise()

    Declaration
    protected override void Initialise()
    Overrides
    BaseMovingPlatform.Initialise()

    LoopWaypoints(Boolean)

    Declaration
    public void LoopWaypoints(bool forward)
    Parameters
    Type Name Description
    System.Boolean forward

    OnReachedWaypoint(Int32)

    Declaration
    protected virtual void OnReachedWaypoint(int wp)
    Parameters
    Type Name Description
    System.Int32 wp

    OnValidate()

    Declaration
    protected void OnValidate()

    ReadProperties(INeoDeserializer, NeoSerializedGameObject)

    Declaration
    public override void ReadProperties(INeoDeserializer reader, NeoSerializedGameObject nsgo)
    Parameters
    Type Name Description
    INeoDeserializer reader
    NeoSerializedGameObject nsgo
    Overrides
    BaseMovingPlatform.ReadProperties(INeoDeserializer, NeoSerializedGameObject)

    Stop()

    Declaration
    public void Stop()

    WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)

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

    Events

    onReachedWaypoint

    Declaration
    public event Action<int> onReachedWaypoint
    Event Type
    Type Description
    System.Action<System.Int32>

    Implements

    IMovingPlatform
    IMonoBehaviour
    INeoSerializableComponent
    IOriginShiftSubscriber
    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX