C# Class Tutorial.Cursor

Inheritance: UnityEngine.MonoBehaviour
显示文件 Open project: tommai78101/Multiplier

Public Properties

Property Type Description
buttonPressedElapsedTime float
cursorGroup UnityEngine.CanvasGroup
endingPosition UnityEngine.Vector3
icon CursorButtonIcon
isAppearing bool
isButtonHeld bool
isButtonPressed bool
isPanning bool
panningElapsedTime float
rectTransform UnityEngine.RectTransform
startingPosition UnityEngine.Vector3

Public Methods

Method Description
Appear ( ) : void
Disappear ( ) : void
DragSelectionBox ( Camera main, CursorPanGroup group, CursorButton button, TutorialAIManager manager, float delayTime, string methodName ) : void
OnDrawGizmos ( ) : void
OnDrawGizmosSelected ( ) : void
PanCursor ( CursorPanGroup group, CursorButton button ) : bool

True if the cursor is already panning, and I do not want to disturb the panning in progress. False if the cursor has finished panning, and there's nothing else to do.

PanCursor ( Vector3 start, Vector3 end ) : bool

True if the cursor is already panning, and I do not want to disturb the panning in progress. False if the cursor has finished panning, and there's nothing else to do.

PanCursorWithAction ( CursorPanGroup group, CursorButton button, TutorialAIManager manager, float delayTime, string methodName ) : bool
PanCursorWithHeldAction ( CursorPanGroup group, CursorButton button, TutorialAIManager manager, float delayTime, string methodName, bool heldFlag ) : bool
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
CursorClickAnimation ( ) : void
CursorDragAnimation ( ) : void
HeldButtonRelease ( ) : void

Method Details

Appear() public method

public Appear ( ) : void
return void

Disappear() public method

public Disappear ( ) : void
return void

DragSelectionBox() public method

public DragSelectionBox ( Camera main, CursorPanGroup group, CursorButton button, TutorialAIManager manager, float delayTime, string methodName ) : void
main UnityEngine.Camera
group CursorPanGroup
button CursorButton
manager TutorialAIManager
delayTime float
methodName string
return void

OnDrawGizmos() public method

public OnDrawGizmos ( ) : void
return void

OnDrawGizmosSelected() public method

public OnDrawGizmosSelected ( ) : void
return void

PanCursor() public method

True if the cursor is already panning, and I do not want to disturb the panning in progress. False if the cursor has finished panning, and there's nothing else to do.
public PanCursor ( CursorPanGroup group, CursorButton button ) : bool
group CursorPanGroup
button CursorButton
return bool

PanCursor() public method

True if the cursor is already panning, and I do not want to disturb the panning in progress. False if the cursor has finished panning, and there's nothing else to do.
public PanCursor ( Vector3 start, Vector3 end ) : bool
start UnityEngine.Vector3 Vector3 position to indicate where the cursor begins the panning animation.
end UnityEngine.Vector3 Vector3 position to indicate where the cursor ends in the panning animation.
return bool

PanCursorWithAction() public method

public PanCursorWithAction ( CursorPanGroup group, CursorButton button, TutorialAIManager manager, float delayTime, string methodName ) : bool
group CursorPanGroup
button CursorButton
manager TutorialAIManager
delayTime float
methodName string
return bool

PanCursorWithHeldAction() public method

public PanCursorWithHeldAction ( CursorPanGroup group, CursorButton button, TutorialAIManager manager, float delayTime, string methodName, bool heldFlag ) : bool
group CursorPanGroup
button CursorButton
manager TutorialAIManager
delayTime float
methodName string
heldFlag bool
return bool

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

buttonPressedElapsedTime public_oe property

public float buttonPressedElapsedTime
return float

cursorGroup public_oe property

public CanvasGroup,UnityEngine cursorGroup
return UnityEngine.CanvasGroup

endingPosition public_oe property

public Vector3,UnityEngine endingPosition
return UnityEngine.Vector3

icon public_oe property

public CursorButtonIcon,Tutorial icon
return CursorButtonIcon

isAppearing public_oe property

public bool isAppearing
return bool

isButtonHeld public_oe property

public bool isButtonHeld
return bool

isButtonPressed public_oe property

public bool isButtonPressed
return bool

isPanning public_oe property

public bool isPanning
return bool

panningElapsedTime public_oe property

public float panningElapsedTime
return float

rectTransform public_oe property

public RectTransform,UnityEngine rectTransform
return UnityEngine.RectTransform

startingPosition public_oe property

public Vector3,UnityEngine startingPosition
return UnityEngine.Vector3