C# Class Drag.DraggableObject

Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: juliancruz87/madbricks Class Usage Examples

Méthodes publiques

Свойство Type Description
OnLauncherTouched OnLauncherTouched
OnNodeUpdated System.Action
OnObjectDragged OnObjectDragged
OnObjectStopDrag System.Action
OnSnap System.Action

Private Properties

Свойство 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

Méthodes publiques

Méthode Description
SetCurrentNode ( Vector3 position ) : void
StopDrag ( ) : void

Private Methods

Méthode 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 méthode

public SetCurrentNode ( Vector3 position ) : void
position Vector3
Résultat void

StopDrag() public méthode

public StopDrag ( ) : void
Résultat void

Property Details

OnLauncherTouched public_oe property

public OnLauncherTouched OnLauncherTouched
Résultat OnLauncherTouched

OnNodeUpdated public_oe property

public Action,System OnNodeUpdated
Résultat System.Action

OnObjectDragged public_oe property

public OnObjectDragged OnObjectDragged
Résultat OnObjectDragged

OnObjectStopDrag public_oe property

public Action,System OnObjectStopDrag
Résultat System.Action

OnSnap public_oe property

public Action,System OnSnap
Résultat System.Action