C# Class FollowObject, Viewport

Inheritance: MonoBehaviour
Show file Open project: tws2xa/Viewport Class Usage Examples

Public Properties

Property Type Description
followX bool
followY bool
followZ bool
initialTarget GameObject
moveStepDistance float
offsets Vector3

Public Methods

Method Description
GetTarget ( ) : GameObject

Gets the target object.

SetTarget ( GameObject newTarget ) : void

Sets the target object.

Start ( ) : void
Update ( ) : void

Method Details

GetTarget() public method

Gets the target object.
public GetTarget ( ) : GameObject
return GameObject

SetTarget() public method

Sets the target object.
public SetTarget ( GameObject newTarget ) : void
newTarget GameObject The new target object.
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

followX public property

public bool followX
return bool

followY public property

public bool followY
return bool

followZ public property

public bool followZ
return bool

initialTarget public property

public GameObject initialTarget
return GameObject

moveStepDistance public property

public float moveStepDistance
return float

offsets public property

public Vector3 offsets
return Vector3