C# Class FinalCase, PuzzleGameProject

Final Square of a level, the player must pass on it after picking all the objectives to win.
Inheritance: Objectif
Datei anzeigen Open project: Cedric-Paris/PuzzleGameProject

Public Properties

Property Type Description
nbobjectif int

Public Methods

Method Description
AddObjectif ( ) : void

Increment the number of objectives to pick

Effect ( bool isTreated = false ) : EffectTransformation,

Return the effect of the square. If there are no more objectives to pick, the player win

PickObjectif ( ) : void

Decrement the number of objectives to pick

Private Methods

Method Description
OnLevelWasLoaded ( int level ) : void
Start ( ) : void

Start the instance. The square start activated

Update ( ) : void

If there is some objectives to pick, disable the square, else enable it

Method Details

AddObjectif() public static method

Increment the number of objectives to pick
public static AddObjectif ( ) : void
return void

Effect() public method

Return the effect of the square. If there are no more objectives to pick, the player win
public Effect ( bool isTreated = false ) : EffectTransformation,
isTreated bool
return EffectTransformation,

PickObjectif() public static method

Decrement the number of objectives to pick
public static PickObjectif ( ) : void
return void

Property Details

nbobjectif public_oe static_oe property

The number of Objectifs to pick to activate the Square
public static int nbobjectif
return int