C# Class Bug.GameObjects.Dynamic

Inheritance: Bug.GameObject
显示文件 Open project: Projectfights/Fight-insect Class Usage Examples

Public Methods

Method Description
Dynamic ( ) : Bug
Dynamic ( Vector2 pos ) : Bug
Dynamic ( Vector2 pos, Vector2 vel_ ) : Bug
OnCollision ( GameObject other, Direction dir ) : void
ResetPos ( ) : void
ResetPosX ( ) : void
ResetPosY ( ) : void
SetPos ( Vector2 pos ) : void

Method Details

Dynamic() public method

public Dynamic ( ) : Bug
return Bug

Dynamic() public method

public Dynamic ( Vector2 pos ) : Bug
pos Vector2
return Bug

Dynamic() public method

public Dynamic ( Vector2 pos, Vector2 vel_ ) : Bug
pos Vector2
vel_ Vector2
return Bug

OnCollision() public abstract method

public abstract OnCollision ( GameObject other, Direction dir ) : void
other Bug.GameObject
dir Direction
return void

ResetPos() public method

public ResetPos ( ) : void
return void

ResetPosX() public method

public ResetPosX ( ) : void
return void

ResetPosY() public method

public ResetPosY ( ) : void
return void

SetPos() public method

public SetPos ( Vector2 pos ) : void
pos Vector2
return void