C# Class LevelScript, Imagine_binary-break-in

Inheritance: MonoBehaviour
ファイルを表示 Open project: Microsoft/Imagine_binary-break-in Class Usage Examples

Public Methods

Method 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

Method 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 method

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

OnFinishLevelClicked() public method

public OnFinishLevelClicked ( ) : void
return void

SpawnLevel() public method

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.
return void