C# Class BaseModifier, r2d2_assignment

Base class for player modifier/powerup
Inheritance: MonoBehaviour
Exibir arquivo Open project: timmutton/r2d2_assignment Class Usage Examples

Public Properties

Property Type Description
DurationSeconds float
OverlayColor Color
White UnityEngine.Texture2D

Public Methods

Method Description
OnGUI ( ) : void
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
Activate ( ) : void
DeactivateAndDestroy ( ) : void
IsExhausted ( ) : bool
OnSecondsPassed ( float seconds ) : void

Method Details

OnGUI() public method

public OnGUI ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

DurationSeconds public_oe property

Gets and sets powerup lasting time
public float DurationSeconds
return float

OverlayColor public_oe property

Screen overlay will be drawn using basic texture and this color.
public Color OverlayColor
return Color

White public_oe property

Base overlay texture
public Texture2D,UnityEngine White
return UnityEngine.Texture2D