Click or drag to resize

MoveRandomly Class

Keeping moving a transform towards a random position in a given area.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          Kit.BehavioursMoveRandomly

Namespace:  Kit.Behaviours
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public class MoveRandomly : MonoBehaviour
Request Example View Source

The MoveRandomly type exposes the following members.

Fields
  NameDescription
Public fieldArea

The area to move around in.

Could be a collider, renderer or transform.

Public fieldEasing
The easing to apply for each cycle.
Public fieldSpeed
The speed at which to move.
Public fieldX
Move around in the X-axis?
Public fieldY
Move around in the Y-axis?
Public fieldZ
Move around in the Z-axis?
Top
Extension Methods
  NameDescription
Public Extension MethodDestroy
Destroy the object.
(Defined by UnityObjectExtensions.)
Public Extension MethodDisable
Set the enabled property to .
(Defined by BehaviourExtensions.)
Public Extension MethodEnable
Set the enabled property to .
(Defined by BehaviourExtensions.)
Public Extension MethodGetBounds

Returns the bounds of the Component.

(Defined by ComponentExtensions.)
Public Extension MethodIsPrefab
Returns whether the Component is a part of a prefab.
(Defined by ComponentExtensions.)
Top
See Also