C# Class Drag.DraggableObject

Inheritance: UnityEngine.MonoBehaviour
Mostrar archivo Open project: juliancruz87/madbricks Class Usage Examples

Public Properties

Property Type Description
OnLauncherTouched OnLauncherTouched
OnNodeUpdated System.Action
OnObjectDragged OnObjectDragged
OnObjectStopDrag System.Action
OnSnap System.Action

Private Properties

Property Type Description
Awake void
CandidatePositionCanBeFixed bool
CheckMapObjectCondition void
CheckMouseInput void
CheckTouchInput void
DebugDragDirection void
DebugHitFloor void
DebugTouchInput void
EnlargeColliderSize void
GetInputPosition Vector3
GetNearestMapObject Map.MapObject
GetTheFirstGameObject UnityEngine.GameObject
HitFloorAtPosition bool
IsAllowedToStartANewDrag bool
ItWillHitAnotherTotem bool
OnCollisionEnter void
OnDestroy void
OnGUI void
PlayCollideSound void
ProcessMapObjectCollision void
RestoreColliderSize void
SetNewLauncher void
Snap void
Start void
StartDrag void
StickToLauncher void
ThisGameObjectIsTheFirstHit bool
Update void
UpdateDrag void
UpdateNearestNode void
UpdatePlanning void

Public Methods

Method Description
SetCurrentNode ( Vector3 position ) : void
StopDrag ( ) : void

Private Methods

Method Description
Awake ( ) : void
CandidatePositionCanBeFixed ( Vector3 &candidatePosition, Vector3 dragStep ) : bool
CheckMapObjectCondition ( ) : void
CheckMouseInput ( ) : void
CheckTouchInput ( ) : void
DebugDragDirection ( ) : void
DebugHitFloor ( bool hitFloor, Vector3 rayStartPoint ) : void
DebugTouchInput ( ) : void
EnlargeColliderSize ( ) : void
GetInputPosition ( ) : Vector3
GetNearestMapObject ( ) : MapObject
GetTheFirstGameObject ( RaycastHit raycastHits ) : GameObject
HitFloorAtPosition ( Vector3 position ) : bool
IsAllowedToStartANewDrag ( ) : bool
ItWillHitAnotherTotem ( Vector3 newDragPosition ) : bool
OnCollisionEnter ( Collision collision ) : void
OnDestroy ( ) : void
OnGUI ( ) : void
PlayCollideSound ( ) : void
ProcessMapObjectCollision ( MapObject nearestMapObject ) : void
RestoreColliderSize ( ) : void
SetNewLauncher ( MapObject newLauncher ) : void
Snap ( ) : void
Start ( ) : void
StartDrag ( ) : void
StickToLauncher ( MapObject stickyLauncher ) : void
ThisGameObjectIsTheFirstHit ( RaycastHit raycastHits ) : bool
Update ( ) : void
UpdateDrag ( ) : void
UpdateNearestNode ( ) : void
UpdatePlanning ( ) : void

Method Details

SetCurrentNode() public method

public SetCurrentNode ( Vector3 position ) : void
position Vector3
return void

StopDrag() public method

public StopDrag ( ) : void
return void

Property Details

OnLauncherTouched public_oe property

public OnLauncherTouched OnLauncherTouched
return OnLauncherTouched

OnNodeUpdated public_oe property

public Action,System OnNodeUpdated
return System.Action

OnObjectDragged public_oe property

public OnObjectDragged OnObjectDragged
return OnObjectDragged

OnObjectStopDrag public_oe property

public Action,System OnObjectStopDrag
return System.Action

OnSnap public_oe property

public Action,System OnSnap
return System.Action