C# Class ScreenPad, urban-survivors

Mostra file Open project: exdev/urban-survivors Class Usage Examples

Public Properties

Property Type Description
aimingAnchor Transform
hudCamera Camera
meleeOutline Transform
moveAnchor Transform
moveLimitation float
reloadOutline Transform
shootingDuration float
useRemoteTouch bool

Public Methods

Method Description
AcceptInput ( bool _accept ) : void
AimingZoneDown ( ) : bool
AimingZoneTouching ( ) : bool
AimingZoneUp ( ) : bool
CanShoot ( ) : bool
GetAimingDirection ( ) : Vector2
GetMoveDirection ( ) : Vector2
Init ( ) : void
MeleeButtonDown ( ) : bool
MeleeButtonPressing ( ) : bool
MeleeButtonUp ( ) : bool
MoveZoneDown ( ) : bool
MoveZoneTouching ( ) : bool
MoveZoneUp ( ) : bool
ReloadButtonDown ( ) : bool
ReloadButtonPressing ( ) : bool
ReloadButtonUp ( ) : bool

Protected Methods

Method Description
GetLastTouch ( ) : Touch

Private Methods

Method Description
HandleAiming ( Vector2 _screenPos ) : void
HandleMove ( Vector2 _screenPos ) : void
Update ( ) : void

Method Details

AcceptInput() public method

public AcceptInput ( bool _accept ) : void
_accept bool
return void

AimingZoneDown() public method

public AimingZoneDown ( ) : bool
return bool

AimingZoneTouching() public method

public AimingZoneTouching ( ) : bool
return bool

AimingZoneUp() public method

public AimingZoneUp ( ) : bool
return bool

CanShoot() public method

public CanShoot ( ) : bool
return bool

GetAimingDirection() public method

public GetAimingDirection ( ) : Vector2
return Vector2

GetLastTouch() protected method

protected GetLastTouch ( ) : Touch
return Touch

GetMoveDirection() public method

public GetMoveDirection ( ) : Vector2
return Vector2

Init() public method

public Init ( ) : void
return void

MeleeButtonDown() public method

public MeleeButtonDown ( ) : bool
return bool

MeleeButtonPressing() public method

public MeleeButtonPressing ( ) : bool
return bool

MeleeButtonUp() public method

public MeleeButtonUp ( ) : bool
return bool

MoveZoneDown() public method

public MoveZoneDown ( ) : bool
return bool

MoveZoneTouching() public method

public MoveZoneTouching ( ) : bool
return bool

MoveZoneUp() public method

public MoveZoneUp ( ) : bool
return bool

ReloadButtonDown() public method

public ReloadButtonDown ( ) : bool
return bool

ReloadButtonPressing() public method

public ReloadButtonPressing ( ) : bool
return bool

ReloadButtonUp() public method

public ReloadButtonUp ( ) : bool
return bool

Property Details

aimingAnchor public_oe property

public Transform aimingAnchor
return Transform

hudCamera public_oe property

public Camera hudCamera
return Camera

meleeOutline public_oe property

public Transform meleeOutline
return Transform

moveAnchor public_oe property

public Transform moveAnchor
return Transform

moveLimitation public_oe property

public float moveLimitation
return float

reloadOutline public_oe property

public Transform reloadOutline
return Transform

shootingDuration public_oe property

public float shootingDuration
return float

useRemoteTouch public_oe property

public bool useRemoteTouch
return bool