C# Class GameFramework.EntityViewModel

Datei anzeigen Open project: dreamanlan/CSharpGameFramework Class Usage Examples

Protected Properties

Property Type Description
m_Actor UnityEngine.GameObject
m_ObjId int
m_Visible bool

Private Properties

Property Type Description
Create void
Destroy void
SyncSpatial void
Update void
UpdateSpatial void
UpdateVisible bool

Public Methods

Method Description
Death ( ) : void

死亡

Hide ( bool hide, bool bNPC = false ) : void

隐身效果切换

MoveTo ( float x, float y, float z ) : void
PlayAnimation ( string anim ) : void
SetMoveAgentEnable ( bool enable ) : void

是否使用NavAgent

SetRedEdge ( float duration ) : void
StopMove ( ) : void
ToggleMaskEffect ( bool enable ) : void
UpdateEdgeColor ( ) : void

Protected Methods

Method Description
CreateActor ( int objId, string model, float x, float y, float z, float dir, float scale, float radius, float speed ) : void
DestroyActor ( ) : void
SetVisible ( bool visible ) : void

Private Methods

Method Description
Create ( EntityInfo entity ) : void
Destroy ( ) : void
SyncSpatial ( ) : void
Update ( ) : void
UpdateSpatial ( ) : void
UpdateVisible ( bool visible ) : bool

Method Details

CreateActor() protected method

protected CreateActor ( int objId, string model, float x, float y, float z, float dir, float scale, float radius, float speed ) : void
objId int
model string
x float
y float
z float
dir float
scale float
radius float
speed float
return void

Death() public method

死亡
public Death ( ) : void
return void

DestroyActor() protected method

protected DestroyActor ( ) : void
return void

Hide() public method

隐身效果切换
public Hide ( bool hide, bool bNPC = false ) : void
hide bool
bNPC bool
return void

MoveTo() public method

public MoveTo ( float x, float y, float z ) : void
x float
y float
z float
return void

PlayAnimation() public method

public PlayAnimation ( string anim ) : void
anim string
return void

SetMoveAgentEnable() public method

是否使用NavAgent
public SetMoveAgentEnable ( bool enable ) : void
enable bool
return void

SetRedEdge() public method

public SetRedEdge ( float duration ) : void
duration float
return void

SetVisible() protected method

protected SetVisible ( bool visible ) : void
visible bool
return void

StopMove() public method

public StopMove ( ) : void
return void

ToggleMaskEffect() public method

public ToggleMaskEffect ( bool enable ) : void
enable bool
return void

UpdateEdgeColor() public method

public UpdateEdgeColor ( ) : void
return void

Property Details

m_Actor protected_oe property

protected GameObject,UnityEngine m_Actor
return UnityEngine.GameObject

m_ObjId protected_oe property

protected int m_ObjId
return int

m_Visible protected_oe property

protected bool m_Visible
return bool