C# Class CnControls.VirtualButton

Virtual button class
Show file Open project: iFunFactory/demo-kgc-2015 Class Usage Examples

Public Methods

Method Description
Press ( ) : void

Press logic sets the current state of the button to "IsPressed" untill the Release() method is called

Release ( ) : void

Release logic frees the button from its "IsPressed" state

VirtualButton ( string name ) : UnityEngine

Method Details

Press() public method

Press logic sets the current state of the button to "IsPressed" untill the Release() method is called
public Press ( ) : void
return void

Release() public method

Release logic frees the button from its "IsPressed" state
public Release ( ) : void
return void

VirtualButton() public method

public VirtualButton ( string name ) : UnityEngine
name string
return UnityEngine