C# Class GameMachine.NpcGroup

Inheritance: UnityEngine.MonoBehaviour
Show 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 property

public Formation formation
return Formation

formationRandomRange public property

public float formationRandomRange
return float

leader public property

public Npc,GameMachine leader
return Npc

leaderDef public property

public NpcDef,GameMachine leaderDef
return NpcDef

memberDefs public property

public List memberDefs
return List

route public property

public WaypointRoute,GameMachine route
return WaypointRoute

showFormationPoint public property

public bool showFormationPoint
return bool