C# Class PlayerCtl, playable_alpha2

Inheritance: MonoBehaviour
ファイルを表示 Open project: kvakvs/playable_alpha2 Class Usage Examples

Public Properties

Property Type Description
guiInventory GuiInventory,
inventory Inventory,
isGrounded bool

Public Methods

Method Description
Dig ( Vector3 p ) : void
GetDistanceToWall ( Vector3 pos, float moveX, float bodyDistances ) : void
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
CastRay ( Vector2 origin, Vector2 direction ) : RaycastHit2D
CheckCeiling ( Vector3 pos ) : Vector3
CheckFloorAndFall ( Vector3 pos ) : Vector3
CheckWallsAndSteps ( Vector3 pos, float moveX ) : Vector3
GetDistanceToCeiling ( ) : float
GetDistanceToFloor ( Vector3 pos ) : float
GetY_Chest ( Vector3 pos ) : float
GetY_Feet ( Vector3 pos ) : float
GetY_Neck ( Vector3 pos ) : float
GetY_OverHead ( Vector3 pos ) : float
TryWalk ( Vector3 pos, float moveX, bool stepUp ) : Vector3

Method Details

Dig() public method

public Dig ( Vector3 p ) : void
p Vector3
return void

GetDistanceToWall() public method

public GetDistanceToWall ( Vector3 pos, float moveX, float bodyDistances ) : void
pos Vector3
moveX float
bodyDistances float
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

guiInventory public_oe property

public GuiInventory, guiInventory
return GuiInventory,

inventory public_oe property

public Inventory, inventory
return Inventory,

isGrounded public_oe property

public bool isGrounded
return bool