C# Class SwipeControl, NewCloud

Inheritance: MonoBehaviour
显示文件 Open project: nileshlg2003/NewCloud Class Usage Examples

Public Properties

Property Type Description
allowInput bool
clickEdgeToSwitch bool
controlEnabled bool
currentValue int
debug bool
leftEdgeRectForClickSwitch Rect
matrix Matrix4x4
maxSpeed float
maxValue int
mouseRect Rect
partWidth float
rightEdgeRectForClickSwitch Rect
skipAutoSetup bool
smoothValue float
startValue int

Public Methods

Method Description
CalculateEdgeRectsFromMouseRect ( ) : void
CalculateEdgeRectsFromMouseRect ( Rect myRect ) : void
FillArrayWithValue ( float arr, float val ) : void
OnGUI ( ) : void
SetEdgeRects ( Rect leftRect, Rect rightRect ) : void
SetMouseRect ( Rect myRect ) : void
Setup ( ) : void
Update ( ) : void

Private Methods

Method Description
GetAvgValue ( float arr ) : float
Start ( ) : IEnumerator

Method Details

CalculateEdgeRectsFromMouseRect() public method

public CalculateEdgeRectsFromMouseRect ( ) : void
return void

CalculateEdgeRectsFromMouseRect() public method

public CalculateEdgeRectsFromMouseRect ( Rect myRect ) : void
myRect Rect
return void

FillArrayWithValue() public method

public FillArrayWithValue ( float arr, float val ) : void
arr float
val float
return void

OnGUI() public method

public OnGUI ( ) : void
return void

SetEdgeRects() public method

public SetEdgeRects ( Rect leftRect, Rect rightRect ) : void
leftRect Rect
rightRect Rect
return void

SetMouseRect() public method

public SetMouseRect ( Rect myRect ) : void
myRect Rect
return void

Setup() public method

public Setup ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

allowInput public_oe property

public bool allowInput
return bool

clickEdgeToSwitch public_oe property

public bool clickEdgeToSwitch
return bool

controlEnabled public_oe property

public bool controlEnabled
return bool

currentValue public_oe property

public int currentValue
return int

debug public_oe property

public bool debug
return bool

leftEdgeRectForClickSwitch public_oe property

public Rect leftEdgeRectForClickSwitch
return Rect

matrix public_oe property

public Matrix4x4 matrix
return Matrix4x4

maxSpeed public_oe property

public float maxSpeed
return float

maxValue public_oe property

public int maxValue
return int

mouseRect public_oe property

public Rect mouseRect
return Rect

partWidth public_oe property

public float partWidth
return float

rightEdgeRectForClickSwitch public_oe property

public Rect rightEdgeRectForClickSwitch
return Rect

skipAutoSetup public_oe property

public bool skipAutoSetup
return bool

smoothValue public_oe property

public float smoothValue
return float

startValue public_oe property

public int startValue
return int