C# Class StrategyDesign.Animal

Mostra file Open project: marwie/Design-Patterns-in-Unity-Example

Public Properties

Property Type Description
flyingType IFly

Public Methods

Method Description
SetFlyingAbility ( IFly newFlyingType ) : void
TryToFly ( ) : string

Method Details

SetFlyingAbility() public method

public SetFlyingAbility ( IFly newFlyingType ) : void
newFlyingType IFly
return void

TryToFly() public method

public TryToFly ( ) : string
return string

Property Details

flyingType public_oe property

public IFly flyingType
return IFly