C# Class SamplyGame.Aircraft

A base class for all aircrafts including the player and enemies
Inheritance: Urho.Component
Show file Open project: xamarin/urho-samples Class Usage Examples

Public Methods

Method Description
Explode ( ) : System.Threading.Tasks.Task

Explode the aircraft with animation

Play ( ) : System.Threading.Tasks.Task

Spawn the aircraft and wait until it's exploded

Protected Methods

Method Description
Aircraft ( ) : System.Linq
Init ( ) : void
OnExplode ( Urho.Node explodeNode ) : void

Private Methods

Method Description
Hit ( ) : void
OnCollided ( NodeCollisionStartEventArgs args ) : void

Method Details

Aircraft() protected method

protected Aircraft ( ) : System.Linq
return System.Linq

Explode() public method

Explode the aircraft with animation
public Explode ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Init() protected method

protected Init ( ) : void
return void

OnExplode() protected method

protected OnExplode ( Urho.Node explodeNode ) : void
explodeNode Urho.Node
return void

Play() public method

Spawn the aircraft and wait until it's exploded
public Play ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task