C# Class GameMachine.NpcGroup

Inheritance: UnityEngine.MonoBehaviour
Mostra file Open project: gamemachine/gamemachine Class Usage Examples

Public Properties

Property Type Description
formation Formation
formationRandomRange float
leader Npc
leaderDef NpcDef
memberDefs List
route WaypointRoute
showFormationPoint bool

Public Methods

Method Description
AddNpc ( Npc npc ) : void
GetFollowTargets ( ) : List
GetNpcList ( ) : List
HasLeader ( ) : bool
InitFormation ( ) : void
IsLeader ( Npc npc ) : bool
RandomVector3 ( Vector3 position ) : Vector3
SetLeader ( Npc leader ) : void
Start ( ) : void

Private Methods

Method Description
CreateFormationPoint ( ) : GameObject
CreateRandomFormation ( ) : void
CreateRandomPoint ( ) : void

Method Details

AddNpc() public method

public AddNpc ( Npc npc ) : void
npc Npc
return void

GetFollowTargets() public method

public GetFollowTargets ( ) : List
return List

GetNpcList() public method

public GetNpcList ( ) : List
return List

HasLeader() public method

public HasLeader ( ) : bool
return bool

InitFormation() public method

public InitFormation ( ) : void
return void

IsLeader() public method

public IsLeader ( Npc npc ) : bool
npc Npc
return bool

RandomVector3() public method

public RandomVector3 ( Vector3 position ) : Vector3
position Vector3
return Vector3

SetLeader() public method

public SetLeader ( Npc leader ) : void
leader Npc
return void

Start() public method

public Start ( ) : void
return void

Property Details

formation public_oe property

public Formation formation
return Formation

formationRandomRange public_oe property

public float formationRandomRange
return float

leader public_oe property

public Npc,GameMachine leader
return Npc

leaderDef public_oe property

public NpcDef,GameMachine leaderDef
return NpcDef

memberDefs public_oe property

public List memberDefs
return List

route public_oe property

public WaypointRoute,GameMachine route
return WaypointRoute

showFormationPoint public_oe property

public bool showFormationPoint
return bool