C# Class LevelScript, Imagine_binary-break-in

Inheritance: MonoBehaviour
Afficher le fichier Open project: Microsoft/Imagine_binary-break-in Class Usage Examples

Méthodes publiques

Méthode Description
DestroyLevel ( ) : void

Returns the binary switches in the level to the object pool.

OnFinishLevelClicked ( ) : void
SpawnLevel ( int digits ) : void

Spawns a new set of switches. Also sets the target number.

Private Methods

Méthode Description
Awake ( ) : void
CheckLevelCompletion ( ) : bool

Checks the binary switches to see if the input matches the target number. Plays wheel animations based on correctness.

FinishLevel ( ) : void

Triggers level completion animations and gameplay state.

Start ( ) : void
TurnOffSuccessLight ( ) : void

Method Details

DestroyLevel() public méthode

Returns the binary switches in the level to the object pool.
public DestroyLevel ( ) : void
Résultat void

OnFinishLevelClicked() public méthode

public OnFinishLevelClicked ( ) : void
Résultat void

SpawnLevel() public méthode

Spawns a new set of switches. Also sets the target number.
public SpawnLevel ( int digits ) : void
digits int Number of binary switches to spawn, as well as the number of digits /// for the goal number.
Résultat void