C# Class MovingPlatformController

Inheritance: MonoBehaviour
Datei anzeigen Open project: macgyver13/globalgamejam2016 Class Usage Examples

Public Properties

Property Type Description
lookHorizontally bool
lookVertically bool
rayDistance float
returnToOrigin bool
reverseInitialLookDirection bool
rotate bool
rotationAngles Vector3
speed float
sticky bool
time float

Private Properties

Property Type Description
AdjustPosition Vector2
GetWallPosition Vector2

Public Methods

Method Description
ApplyTheSticky ( Collider2D coll, RelativeJoint2D jointToApplyStick ) : void
DestroyTween ( string tweenType ) : void
OnCollisionEnter2D ( Collision2D coll ) : void
Start ( ) : void
StartTween ( Vector3 moveToOrRotatePosition, string tweenType ) : void
TweenCompleted ( ) : void

Private Methods

Method Description
AdjustPosition ( Vector2 movePosition ) : Vector2
GetWallPosition ( ) : Vector2

Method Details

ApplyTheSticky() public method

public ApplyTheSticky ( Collider2D coll, RelativeJoint2D jointToApplyStick ) : void
coll UnityEngine.Collider2D
jointToApplyStick UnityEngine.RelativeJoint2D
return void

DestroyTween() public method

public DestroyTween ( string tweenType ) : void
tweenType string
return void

OnCollisionEnter2D() public method

public OnCollisionEnter2D ( Collision2D coll ) : void
coll Collision2D
return void

Start() public method

public Start ( ) : void
return void

StartTween() public method

public StartTween ( Vector3 moveToOrRotatePosition, string tweenType ) : void
moveToOrRotatePosition Vector3
tweenType string
return void

TweenCompleted() public method

public TweenCompleted ( ) : void
return void

Property Details

lookHorizontally public_oe property

public bool lookHorizontally
return bool

lookVertically public_oe property

public bool lookVertically
return bool

rayDistance public_oe property

public float rayDistance
return float

returnToOrigin public_oe property

public bool returnToOrigin
return bool

reverseInitialLookDirection public_oe property

public bool reverseInitialLookDirection
return bool

rotate public_oe property

public bool rotate
return bool

rotationAngles public_oe property

public Vector3 rotationAngles
return Vector3

speed public_oe property

public float speed
return float

sticky public_oe property

public bool sticky
return bool

time public_oe property

public float time
return float