C# Class Common.NpcEntityController

Inheritance: MonoBehaviour, Common.GameEntityController
ファイルを表示 Open project: gamemachine/gamemachine

Public Properties

Property Type Description
activePlatform Common.Transform
agent NavMeshAgent
agentTarget Common.Vector3
antiBump float
backSpeed float
controllingBoat bool
gameEntity IGameEntity
gravity float
jumpPower float
lastPosition Common.Vector3
moveSpeed float
onBoat bool
pathEndThreshold float
playerSpeed float
runSpeed float
serverTarget Common.Vector3
slopeLimit float
speed float
stopped bool
swimJumpSpeed float
swimLevel float
swimSpeed float
swimming bool
targetTransform Common.Transform
turnSpeed float
updateAgentDestination bool
useNavmesh bool
walkSpeed float

Public Methods

Method Description
AtEndOfPath ( ) : bool
GetPlayerSpeed ( ) : float
IsInitialized ( ) : bool
ManualUpdate ( ) : void
MoveOnPlatform ( ) : void
OnBoat ( ) : bool
PlatformPostCalc ( ) : void
ServerMove ( float y, float spd, Common.Vector3 targetPosition ) : void
SetAgentTarget ( Common.Vector3 agentTarget ) : void
SetNetworkFields ( Common.NetworkFields networkFields ) : void
SetPlayerSpeed ( float speed ) : void
SetTargetTransform ( Common.Transform targetTransform ) : void
Start ( ) : void

Protected Methods

Method Description
RotateTowards ( Common.Vector3 dir ) : void

Private Methods

Method Description
AgentUpdate ( ) : void
RemoteUpdate ( Common.Vector3 targetPosition ) : void
SetAnimation ( AnimationName name ) : void
UpdateAnimations ( float distanceToTarget ) : void

Method Details

AtEndOfPath() public method

public AtEndOfPath ( ) : bool
return bool

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

PlatformPostCalc() public method

public PlatformPostCalc ( ) : void
return void

RotateTowards() protected method

protected RotateTowards ( Common.Vector3 dir ) : void
dir Common.Vector3
return void

ServerMove() public method

public ServerMove ( float y, float spd, Common.Vector3 targetPosition ) : void
y float
spd float
targetPosition Common.Vector3
return void

SetAgentTarget() public method

public SetAgentTarget ( Common.Vector3 agentTarget ) : void
agentTarget Common.Vector3
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

SetTargetTransform() public method

public SetTargetTransform ( Common.Transform targetTransform ) : void
targetTransform Common.Transform
return void

Start() public method

public Start ( ) : void
return void

Property Details

activePlatform public_oe property

public Transform,Common activePlatform
return Common.Transform

agent public_oe property

public NavMeshAgent agent
return NavMeshAgent

agentTarget public_oe property

public Vector3,Common agentTarget
return Common.Vector3

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

pathEndThreshold public_oe property

public float pathEndThreshold
return float

playerSpeed public_oe property

public float playerSpeed
return float

runSpeed public_oe property

public float runSpeed
return float

serverTarget public_oe property

public Vector3,Common serverTarget
return Common.Vector3

slopeLimit public_oe property

public float slopeLimit
return float

speed public_oe property

public float speed
return float

stopped public_oe property

public bool stopped
return bool

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

targetTransform public_oe property

public Transform,Common targetTransform
return Common.Transform

turnSpeed public_oe property

public float turnSpeed
return float

updateAgentDestination public_oe property

public bool updateAgentDestination
return bool

useNavmesh public_oe property

public bool useNavmesh
return bool

walkSpeed public_oe property

public float walkSpeed
return float