Search Results for

    Show / Hide Table of Contents

    Class MovingPlatform

    This class controls a platform that moves between specified points in a loop.

    Inheritance
    object
    MovingPlatform
    Namespace: Game
    Assembly: cs.temp.dll.dll
    Syntax
    public class MovingPlatform : MonoBehaviour

    Fields

    platform

    The platform object that will move.

    Declaration
    public Transform platform
    Field Value
    Type Description
    Transform

    points

    An array of points that the platform will move between.

    Declaration
    public Transform[] points
    Field Value
    Type Description
    Transform[]

    speed

    The speed at which the platform moves.

    Declaration
    public float speed
    Field Value
    Type Description
    float

    startPoint

    The index of the starting point for the platform.

    Declaration
    public int startPoint
    Field Value
    Type Description
    int
    In This Article
    Back to top Example Unity documentation footer