C# Class BaseUnit

Inheritance: MonoBehaviour
Show file Open project: BornToGrill/Project-Frequency Class Usage Examples

Public Properties

Property Type Description
Cost int
DiscountCost int
DiscountEnvironment Environment,
Health int
MaxUnitStack int
TraversableEnvironments Environment[]

Private Properties

Property Type Description

Public Methods

Method Description
Awake ( ) : void
DamageUnit ( int damage, BaseUnit, Attacker ) : void
GetCost ( Environment, environment ) : int

Method Details

Awake() public method

public Awake ( ) : void
return void

DamageUnit() public abstract method

public abstract DamageUnit ( int damage, BaseUnit, Attacker ) : void
damage int
Attacker BaseUnit,
return void

GetCost() public method

public GetCost ( Environment, environment ) : int
environment Environment,
return int

Property Details

Cost public property

public int Cost
return int

DiscountCost public property

public int DiscountCost
return int

DiscountEnvironment public property

public Environment, DiscountEnvironment
return Environment,

Health public property

public int Health
return int

MaxUnitStack public property

public int MaxUnitStack
return int

TraversableEnvironments public property

public Environment[] TraversableEnvironments
return Environment[]