C# Class Common.PlayerEntityController

Inheritance: MonoBehaviour, Common.GameEntityController
显示文件 Open project: gamemachine/gamemachine

Public Properties

Property Type Description
activePlatform Common.Transform
antiBump float
backSpeed float
controllingBoat bool
gameEntity IGameEntity
gravity float
jumpPower float
lastPosition Common.Vector3
moveSpeed float
onBoat bool
runSpeed float
slopeLimit float
speed float
swimJumpSpeed float
swimLevel float
swimSpeed float
swimming bool
turnSpeed float
underWater bool
walkSpeed float

Public Methods

Method Description
GetPlayerSpeed ( ) : float
IsInitialized ( ) : bool
ManualUpdate ( ) : void
MoveOnPlatform ( ) : void
OnBoat ( ) : bool
OnControllerColliderHit ( ControllerColliderHit col ) : void
PlatformPostCalc ( ) : void
ServerMove ( float y, float spd ) : void
SetNetworkFields ( Common.NetworkFields networkFields ) : void
SetPlayerSpeed ( float speed ) : void
Start ( ) : void

Private Methods

Method Description
SetAnimation ( AnimationName name ) : void
UpdateAnimations ( ) : void

Method Details

GetPlayerSpeed() public method

public GetPlayerSpeed ( ) : float
return float

IsInitialized() public method

public IsInitialized ( ) : bool
return bool

ManualUpdate() public method

public ManualUpdate ( ) : void
return void

MoveOnPlatform() public method

public MoveOnPlatform ( ) : void
return void

OnBoat() public method

public OnBoat ( ) : bool
return bool

OnControllerColliderHit() public method

public OnControllerColliderHit ( ControllerColliderHit col ) : void
col ControllerColliderHit
return void

PlatformPostCalc() public method

public PlatformPostCalc ( ) : void
return void

ServerMove() public method

public ServerMove ( float y, float spd ) : void
y float
spd float
return void

SetNetworkFields() public method

public SetNetworkFields ( Common.NetworkFields networkFields ) : void
networkFields Common.NetworkFields
return void

SetPlayerSpeed() public method

public SetPlayerSpeed ( float speed ) : void
speed float
return void

Start() public method

public Start ( ) : void
return void

Property Details

activePlatform public_oe property

public Transform,Common activePlatform
return Common.Transform

antiBump public_oe property

public float antiBump
return float

backSpeed public_oe property

public float backSpeed
return float

controllingBoat public_oe property

public bool controllingBoat
return bool

gameEntity public_oe property

public IGameEntity gameEntity
return IGameEntity

gravity public_oe property

public float gravity
return float

jumpPower public_oe property

public float jumpPower
return float

lastPosition public_oe property

public Vector3,Common lastPosition
return Common.Vector3

moveSpeed public_oe property

public float moveSpeed
return float

onBoat public_oe property

public bool onBoat
return bool

runSpeed public_oe property

public float runSpeed
return float

slopeLimit public_oe property

public float slopeLimit
return float

speed public_oe property

public float speed
return float

swimJumpSpeed public_oe property

public float swimJumpSpeed
return float

swimLevel public_oe property

public float swimLevel
return float

swimSpeed public_oe property

public float swimSpeed
return float

swimming public_oe property

public bool swimming
return bool

turnSpeed public_oe property

public float turnSpeed
return float

underWater public_oe property

public bool underWater
return bool

walkSpeed public_oe property

public float walkSpeed
return float