C# Class PuzzleManager, RoverGame

Inheritance: MonoBehaviour
Afficher le fichier Open project: Stumpstump/RoverGame Class Usage Examples

Méthodes publiques

Свойство Type Description
Moves int
backButtonImage Image,
beginDrawEffect UnityEngine.AudioClip
beginGridCell GridCell,
beginWireCount int
beginWireCounter Transform
beginWireIngredient Ingredient,
cachedSoundSource SoundSource,
cellCompleteColor Color
cellContentPrefab GameObject
cellStartColor Color
cellTransColor Color
clickMoving bool
connectedSFX UnityEngine.AudioClip
contentCellPrefab GameObject
currentGridCell GridCell,
currentLevel Level,
currentLine Line,
currentRayCell Transform
draggingElement GameObject
draggingElementPrefab GameObject
draggingElementSpriteRenderer SpriteRenderer
drawDraggingElement bool
drawShortedEffect AudioClip
grid GameObject
gridBottomPivotTransform Transform
gridCellPrefab GameObject
gridCells GridCell[]
gridContentsTransform Transform
gridLinePrefab GameObject
gridLines Line[]
gridLinesTransfrom Transform
gridSize Vector2
gridTopPivotTransform Transform
hits RaycastHit[]
isRunning bool
levelLockedSFX AudioClip
levelText Text
lineDrawEffect AudioClip
mainCamera Camera
missionText Text
movements int
nextButtonImage Image
numberOfColumns int
numberOfRows int
pairCell GridCell
pairHoverEffect AudioClip
pairSparks GameObject
playerRay Ray
previousGridCell GridCell
previousRayCell Transform
pulsateColor Color
pulsateDelay float
pulsateGrid bool
pulseGridTime float
puzzleCompleteEffect AudioClip
rayCellChange bool
resetLineEffect AudioClip
tempCollider2D Collider2D
tempCollider3D Collider
tempColor Color
tempPoint Vector3
tempScale Vector3
tempSpriteRendererd Image
timer Timer
waterBubbleSFX AudioClip
wirePairCounter GameObject
worldLinePrefab GameObject

Méthodes publiques

Méthode Description
Awake ( ) : void
Close ( ) : void
EnoughWiresOfType ( ) : bool
InitializePuzzle ( GameObject puzzle_Canvas ) : void

When the GameObject becomes visible

NextLevel ( ) : void

Go to the next level.

OnDisable ( ) : void

When the GameObject becomes invisible.

PreviousLevel ( ) : void

Back to the previous level.

PulsateWait ( ) : IEnumerator
RefreshGrid ( ) : void

Refreshs(Reset) the grid.

RunPuzzle ( ) : void
Update ( ) : void

Private Methods

Méthode Description
BuildTheGrid ( ) : void

Build the grid.

CheckForPair ( RaycastHit hitter ) : bool
CheckLevelComplete ( ) : void

Checks Wheter the level is completed.

Cleanup ( bool completed ) : void
CreateDraggingElement ( Color color, Vector3 scale ) : void

Creates the dragging element.

CreateGridLine ( float lineWidth, Color lineColor, string name, int index ) : void

Setting up Grid Lines

CreateNewLevel ( ) : void

Create a new level.

CreateWireLine ( Color lineColor, string name, int index ) : void
DelayRun ( ) : IEnumerator
DrawDraggingElement ( Vector3 clickPosition ) : void

Draw(Drag) the dragging element.

GridCellClickBegan ( ) : void

When a click(touch) began on the GridCell.

GridCellClickMoved ( ) : void

When a click(touch) moved over the GridCell.

IncreaseMovements ( ) : void

Increase the movements counter.

PulsateGrid ( ) : void
RayCast ( ClickType clickType ) : void

Raycast the click (touch) on the screen.

Release ( Line, line ) : void

On Click Release event.

RemoveInventoryWires ( ) : void
ResetGameContents ( ) : void

Resets the game contents.

SetEndMoves ( ) : void
SetGridPairIngredient ( GridCell, cell, Level, wireType ) : void
SettingUpNextBackAlpha ( ) : void

Setting up alpha value for the next and back buttons.

SettingUpObstacles ( ) : void
SettingUpPairs ( ) : void

Setting up the cells pairs.

Method Details

Awake() public méthode

public Awake ( ) : void
Résultat void

Close() public méthode

public Close ( ) : void
Résultat void

EnoughWiresOfType() public méthode

public EnoughWiresOfType ( ) : bool
Résultat bool

InitializePuzzle() public méthode

When the GameObject becomes visible
public InitializePuzzle ( GameObject puzzle_Canvas ) : void
puzzle_Canvas GameObject
Résultat void

NextLevel() public méthode

Go to the next level.
public NextLevel ( ) : void
Résultat void

OnDisable() public méthode

When the GameObject becomes invisible.
public OnDisable ( ) : void
Résultat void

PreviousLevel() public méthode

Back to the previous level.
public PreviousLevel ( ) : void
Résultat void

PulsateWait() public méthode

public PulsateWait ( ) : IEnumerator
Résultat IEnumerator

RefreshGrid() public méthode

Refreshs(Reset) the grid.
public RefreshGrid ( ) : void
Résultat void

RunPuzzle() public méthode

public RunPuzzle ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

Moves public_oe property

public int Moves
Résultat int

backButtonImage public_oe property

The back button image.
public Image, backButtonImage
Résultat Image,

beginDrawEffect public_oe property

public AudioClip,UnityEngine beginDrawEffect
Résultat UnityEngine.AudioClip

beginGridCell public_oe property

public GridCell, beginGridCell
Résultat GridCell,

beginWireCount public_oe property

public int beginWireCount
Résultat int

beginWireCounter public_oe property

public Transform beginWireCounter
Résultat Transform

beginWireIngredient public_oe property

public Ingredient, beginWireIngredient
Résultat Ingredient,

cachedSoundSource public_oe property

public SoundSource, cachedSoundSource
Résultat SoundSource,

cellCompleteColor public_oe property

public Color cellCompleteColor
Résultat Color

cellContentPrefab public_oe property

The cell content prefab.
public GameObject cellContentPrefab
Résultat GameObject

cellStartColor public_oe property

public Color cellStartColor
Résultat Color

cellTransColor public_oe property

public Color cellTransColor
Résultat Color

clickMoving public_oe property

Whether the current click is moving
public bool clickMoving
Résultat bool

connectedSFX public_oe property

The connected sound effect.
public AudioClip,UnityEngine connectedSFX
Résultat UnityEngine.AudioClip

contentCellPrefab public_oe property

public GameObject contentCellPrefab
Résultat GameObject

currentGridCell public_oe property

The current(selected) grid cell.
public GridCell, currentGridCell
Résultat GridCell,

currentLevel public_oe static_oe property

The current level.
public static Level, currentLevel
Résultat Level,

currentLine public_oe property

current line in the grid.
public Line, currentLine
Résultat Line,

currentRayCell public_oe property

public Transform currentRayCell
Résultat Transform

draggingElement public_oe property

The dragging element reference.
public GameObject draggingElement
Résultat GameObject

draggingElementPrefab public_oe property

The dragging element prefab.
public GameObject draggingElementPrefab
Résultat GameObject

draggingElementSpriteRenderer public_oe property

The dragging element sprite renderer.
public SpriteRenderer draggingElementSpriteRenderer
Résultat SpriteRenderer

drawDraggingElement public_oe property

Whether the dragging element is rendering(dragging)
public bool drawDraggingElement
Résultat bool

drawShortedEffect public_oe property

public AudioClip drawShortedEffect
Résultat AudioClip

grid public_oe property

The grid.
public GameObject grid
Résultat GameObject

gridBottomPivotTransform public_oe property

The grid bottom pivot transform.
public Transform gridBottomPivotTransform
Résultat Transform

gridCellPrefab public_oe property

The grid cell prefab.
public GameObject gridCellPrefab
Résultat GameObject

gridCells public_oe static_oe property

The grid cells in the grid.
public static GridCell[] gridCells
Résultat GridCell[]

gridContentsTransform public_oe property

The grid contents transform.
public Transform gridContentsTransform
Résultat Transform

gridLinePrefab public_oe property

The grid line prefab.
public GameObject gridLinePrefab
Résultat GameObject

gridLines public_oe static_oe property

The grid lines in the grid.
public static Line[] gridLines
Résultat Line[]

gridLinesTransfrom public_oe property

The grid lines transfrom.
public Transform gridLinesTransfrom
Résultat Transform

gridSize public_oe property

The size of the grid.
public Vector2 gridSize
Résultat Vector2

gridTopPivotTransform public_oe property

The grid top pivot transform.
public Transform gridTopPivotTransform
Résultat Transform

hits public_oe property

public RaycastHit[] hits
Résultat RaycastHit[]

isRunning public_oe property

Whether the GameManager is running.
public bool isRunning
Résultat bool

levelLockedSFX public_oe property

The level locked sound effect.
public AudioClip levelLockedSFX
Résultat AudioClip

levelText public_oe property

The level text.
public Text levelText
Résultat Text

lineDrawEffect public_oe property

public AudioClip lineDrawEffect
Résultat AudioClip

mainCamera public_oe property

public Camera mainCamera
Résultat Camera

missionText public_oe property

The mission text.
public Text missionText
Résultat Text

movements public_oe static_oe property

The movements counter.
public static int movements
Résultat int

nextButtonImage public_oe property

The next button image.
public Image nextButtonImage
Résultat Image

numberOfColumns public_oe static_oe property

The number of columns of the grid.
public static int numberOfColumns
Résultat int

numberOfRows public_oe static_oe property

The number of rows of the grid.
public static int numberOfRows
Résultat int

pairCell public_oe property

public GridCell pairCell
Résultat GridCell

pairHoverEffect public_oe property

public AudioClip pairHoverEffect
Résultat AudioClip

pairSparks public_oe property

public GameObject pairSparks
Résultat GameObject

playerRay public_oe property

public Ray playerRay
Résultat Ray

previousGridCell public_oe property

The previous grid cell.
public GridCell previousGridCell
Résultat GridCell

previousRayCell public_oe property

public Transform previousRayCell
Résultat Transform

pulsateColor public_oe property

public Color pulsateColor
Résultat Color

pulsateDelay public_oe property

public float pulsateDelay
Résultat float

pulsateGrid public_oe property

public bool pulsateGrid
Résultat bool

pulseGridTime public_oe property

public float pulseGridTime
Résultat float

puzzleCompleteEffect public_oe property

public AudioClip puzzleCompleteEffect
Résultat AudioClip

rayCellChange public_oe property

public bool rayCellChange
Résultat bool

resetLineEffect public_oe property

public AudioClip resetLineEffect
Résultat AudioClip

tempCollider2D public_oe property

Temp collider 2d.
public Collider2D tempCollider2D
Résultat Collider2D

tempCollider3D public_oe property

Temp collider 2d.
public Collider tempCollider3D
Résultat Collider

tempColor public_oe property

Temp color.
public Color tempColor
Résultat Color

tempPoint public_oe property

Temp point.
public Vector3 tempPoint
Résultat Vector3

tempScale public_oe property

Temp scale.
public Vector3 tempScale
Résultat Vector3

tempSpriteRendererd public_oe property

Temporary sprite renderer.
public Image tempSpriteRendererd
Résultat Image

timer public_oe property

The timer reference.
public Timer timer
Résultat Timer

waterBubbleSFX public_oe property

The water bubble sound effect.
public AudioClip waterBubbleSFX
Résultat AudioClip

wirePairCounter public_oe property

public GameObject wirePairCounter
Résultat GameObject

worldLinePrefab public_oe property

public GameObject worldLinePrefab
Résultat GameObject