C# 클래스 PuzzleManager, RoverGame

상속: MonoBehaviour
파일 보기 프로젝트 열기: Stumpstump/RoverGame 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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.

메소드 상세

Awake() 공개 메소드

public Awake ( ) : void
리턴 void

Close() 공개 메소드

public Close ( ) : void
리턴 void

EnoughWiresOfType() 공개 메소드

public EnoughWiresOfType ( ) : bool
리턴 bool

InitializePuzzle() 공개 메소드

When the GameObject becomes visible
public InitializePuzzle ( GameObject puzzle_Canvas ) : void
puzzle_Canvas GameObject
리턴 void

NextLevel() 공개 메소드

Go to the next level.
public NextLevel ( ) : void
리턴 void

OnDisable() 공개 메소드

When the GameObject becomes invisible.
public OnDisable ( ) : void
리턴 void

PreviousLevel() 공개 메소드

Back to the previous level.
public PreviousLevel ( ) : void
리턴 void

PulsateWait() 공개 메소드

public PulsateWait ( ) : IEnumerator
리턴 IEnumerator

RefreshGrid() 공개 메소드

Refreshs(Reset) the grid.
public RefreshGrid ( ) : void
리턴 void

RunPuzzle() 공개 메소드

public RunPuzzle ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

프로퍼티 상세

Moves 공개적으로 프로퍼티

public int Moves
리턴 int

backButtonImage 공개적으로 프로퍼티

The back button image.
public Image, backButtonImage
리턴 Image,

beginDrawEffect 공개적으로 프로퍼티

public AudioClip,UnityEngine beginDrawEffect
리턴 UnityEngine.AudioClip

beginGridCell 공개적으로 프로퍼티

public GridCell, beginGridCell
리턴 GridCell,

beginWireCount 공개적으로 프로퍼티

public int beginWireCount
리턴 int

beginWireCounter 공개적으로 프로퍼티

public Transform beginWireCounter
리턴 Transform

beginWireIngredient 공개적으로 프로퍼티

public Ingredient, beginWireIngredient
리턴 Ingredient,

cachedSoundSource 공개적으로 프로퍼티

public SoundSource, cachedSoundSource
리턴 SoundSource,

cellCompleteColor 공개적으로 프로퍼티

public Color cellCompleteColor
리턴 Color

cellContentPrefab 공개적으로 프로퍼티

The cell content prefab.
public GameObject cellContentPrefab
리턴 GameObject

cellStartColor 공개적으로 프로퍼티

public Color cellStartColor
리턴 Color

cellTransColor 공개적으로 프로퍼티

public Color cellTransColor
리턴 Color

clickMoving 공개적으로 프로퍼티

Whether the current click is moving
public bool clickMoving
리턴 bool

connectedSFX 공개적으로 프로퍼티

The connected sound effect.
public AudioClip,UnityEngine connectedSFX
리턴 UnityEngine.AudioClip

contentCellPrefab 공개적으로 프로퍼티

public GameObject contentCellPrefab
리턴 GameObject

currentGridCell 공개적으로 프로퍼티

The current(selected) grid cell.
public GridCell, currentGridCell
리턴 GridCell,

currentLevel 공개적으로 정적으로 프로퍼티

The current level.
public static Level, currentLevel
리턴 Level,

currentLine 공개적으로 프로퍼티

current line in the grid.
public Line, currentLine
리턴 Line,

currentRayCell 공개적으로 프로퍼티

public Transform currentRayCell
리턴 Transform

draggingElement 공개적으로 프로퍼티

The dragging element reference.
public GameObject draggingElement
리턴 GameObject

draggingElementPrefab 공개적으로 프로퍼티

The dragging element prefab.
public GameObject draggingElementPrefab
리턴 GameObject

draggingElementSpriteRenderer 공개적으로 프로퍼티

The dragging element sprite renderer.
public SpriteRenderer draggingElementSpriteRenderer
리턴 SpriteRenderer

drawDraggingElement 공개적으로 프로퍼티

Whether the dragging element is rendering(dragging)
public bool drawDraggingElement
리턴 bool

drawShortedEffect 공개적으로 프로퍼티

public AudioClip drawShortedEffect
리턴 AudioClip

grid 공개적으로 프로퍼티

The grid.
public GameObject grid
리턴 GameObject

gridBottomPivotTransform 공개적으로 프로퍼티

The grid bottom pivot transform.
public Transform gridBottomPivotTransform
리턴 Transform

gridCellPrefab 공개적으로 프로퍼티

The grid cell prefab.
public GameObject gridCellPrefab
리턴 GameObject

gridCells 공개적으로 정적으로 프로퍼티

The grid cells in the grid.
public static GridCell[] gridCells
리턴 GridCell[]

gridContentsTransform 공개적으로 프로퍼티

The grid contents transform.
public Transform gridContentsTransform
리턴 Transform

gridLinePrefab 공개적으로 프로퍼티

The grid line prefab.
public GameObject gridLinePrefab
리턴 GameObject

gridLines 공개적으로 정적으로 프로퍼티

The grid lines in the grid.
public static Line[] gridLines
리턴 Line[]

gridLinesTransfrom 공개적으로 프로퍼티

The grid lines transfrom.
public Transform gridLinesTransfrom
리턴 Transform

gridSize 공개적으로 프로퍼티

The size of the grid.
public Vector2 gridSize
리턴 Vector2

gridTopPivotTransform 공개적으로 프로퍼티

The grid top pivot transform.
public Transform gridTopPivotTransform
리턴 Transform

hits 공개적으로 프로퍼티

public RaycastHit[] hits
리턴 RaycastHit[]

isRunning 공개적으로 프로퍼티

Whether the GameManager is running.
public bool isRunning
리턴 bool

levelLockedSFX 공개적으로 프로퍼티

The level locked sound effect.
public AudioClip levelLockedSFX
리턴 AudioClip

levelText 공개적으로 프로퍼티

The level text.
public Text levelText
리턴 Text

lineDrawEffect 공개적으로 프로퍼티

public AudioClip lineDrawEffect
리턴 AudioClip

mainCamera 공개적으로 프로퍼티

public Camera mainCamera
리턴 Camera

missionText 공개적으로 프로퍼티

The mission text.
public Text missionText
리턴 Text

movements 공개적으로 정적으로 프로퍼티

The movements counter.
public static int movements
리턴 int

nextButtonImage 공개적으로 프로퍼티

The next button image.
public Image nextButtonImage
리턴 Image

numberOfColumns 공개적으로 정적으로 프로퍼티

The number of columns of the grid.
public static int numberOfColumns
리턴 int

numberOfRows 공개적으로 정적으로 프로퍼티

The number of rows of the grid.
public static int numberOfRows
리턴 int

pairCell 공개적으로 프로퍼티

public GridCell pairCell
리턴 GridCell

pairHoverEffect 공개적으로 프로퍼티

public AudioClip pairHoverEffect
리턴 AudioClip

pairSparks 공개적으로 프로퍼티

public GameObject pairSparks
리턴 GameObject

playerRay 공개적으로 프로퍼티

public Ray playerRay
리턴 Ray

previousGridCell 공개적으로 프로퍼티

The previous grid cell.
public GridCell previousGridCell
리턴 GridCell

previousRayCell 공개적으로 프로퍼티

public Transform previousRayCell
리턴 Transform

pulsateColor 공개적으로 프로퍼티

public Color pulsateColor
리턴 Color

pulsateDelay 공개적으로 프로퍼티

public float pulsateDelay
리턴 float

pulsateGrid 공개적으로 프로퍼티

public bool pulsateGrid
리턴 bool

pulseGridTime 공개적으로 프로퍼티

public float pulseGridTime
리턴 float

puzzleCompleteEffect 공개적으로 프로퍼티

public AudioClip puzzleCompleteEffect
리턴 AudioClip

rayCellChange 공개적으로 프로퍼티

public bool rayCellChange
리턴 bool

resetLineEffect 공개적으로 프로퍼티

public AudioClip resetLineEffect
리턴 AudioClip

tempCollider2D 공개적으로 프로퍼티

Temp collider 2d.
public Collider2D tempCollider2D
리턴 Collider2D

tempCollider3D 공개적으로 프로퍼티

Temp collider 2d.
public Collider tempCollider3D
리턴 Collider

tempColor 공개적으로 프로퍼티

Temp color.
public Color tempColor
리턴 Color

tempPoint 공개적으로 프로퍼티

Temp point.
public Vector3 tempPoint
리턴 Vector3

tempScale 공개적으로 프로퍼티

Temp scale.
public Vector3 tempScale
리턴 Vector3

tempSpriteRendererd 공개적으로 프로퍼티

Temporary sprite renderer.
public Image tempSpriteRendererd
리턴 Image

timer 공개적으로 프로퍼티

The timer reference.
public Timer timer
리턴 Timer

waterBubbleSFX 공개적으로 프로퍼티

The water bubble sound effect.
public AudioClip waterBubbleSFX
리턴 AudioClip

wirePairCounter 공개적으로 프로퍼티

public GameObject wirePairCounter
리턴 GameObject

worldLinePrefab 공개적으로 프로퍼티

public GameObject worldLinePrefab
리턴 GameObject