C# 클래스 Puzzle.GameScript

Main game script for Puzzle mini-game
상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: BrainProject/UnityTemp

공개 프로퍼티들

프로퍼티 타입 설명
backgroundSprite UnityEngine.GameObject
connectedComponents HashSet>
numberPieces int
pieces PuzzlePiece>.Dictionary
puzzleImage UnityEngine.Texture2D
shader UnityEngine.Shader
targetImage Image

공개 메소드들

메소드 설명
CheckPossibleConnection ( GameObject puzzleObject ) : bool
Start ( ) : void
Update ( ) : void

비공개 메소드들

메소드 설명
CheckVictory ( ) : bool
EndGame ( ) : void
placePuzzlePieces ( ) : void
setOrthographicCamera ( ) : void

메소드 상세

CheckPossibleConnection() 공개 메소드

public CheckPossibleConnection ( GameObject puzzleObject ) : bool
puzzleObject UnityEngine.GameObject
리턴 bool

Start() 공개 메소드

public Start ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

프로퍼티 상세

backgroundSprite 공개적으로 프로퍼티

The background sprite
public GameObject,UnityEngine backgroundSprite
리턴 UnityEngine.GameObject

connectedComponents 공개적으로 프로퍼티

A set of connected components (connected component is a set of puzzle pieces, there are used just their gameObjects
public HashSet> connectedComponents
리턴 HashSet>

numberPieces 공개적으로 프로퍼티

number of puzzle pieces
public int numberPieces
리턴 int

pieces 공개적으로 프로퍼티

dictionary of all pieces of puzzle. Name used is ID of piece. Dictionary is used to make it faster to get demanded piece
public Dictionary pieces
리턴 PuzzlePiece>.Dictionary

puzzleImage 공개적으로 프로퍼티

texture of image to complete in puzzle
public Texture2D,UnityEngine puzzleImage
리턴 UnityEngine.Texture2D

shader 공개적으로 프로퍼티

public Shader,UnityEngine shader
리턴 UnityEngine.Shader

targetImage 공개적으로 프로퍼티

indicates whether game was won or not
public Image targetImage
리턴 Image