C# Class BlockManager, feztris

Inheritance: MonoBehaviour
Afficher le fichier Open project: chadpaulson/feztris Class Usage Examples

Méthodes publiques

Свойство Type Description
block GameObject
blockFall bool
canRotate bool
colorSwap bool
cubeRotation bool
cubeSide int
invader GameObject
invaderHit UnityEngine.AudioSource
newCubes bool
selectorClear bool
selectorTex Texture
selectorTex2 Texture

Méthodes publiques

Méthode Description
FixedUpdate ( ) : void
OnApplicationPause ( ) : void
OnGUI ( ) : void
Start ( ) : void
Update ( ) : void
checkSelection ( ) : void
clearAllBlocks ( ) : void
clearBlocks ( List matches ) : bool
createColors ( ) : void
disableBlockFall ( ) : void
dropBlock ( float x, float y, float z, Color color ) : void
dropInvader ( float x, float y, float z ) : void
enableBlockFall ( ) : void
enableRotation ( ) : void
initBlocks ( ) : void
initRepeats ( ) : void
initReset ( ) : void
moveSelector ( string direction ) : void
newBlock ( ) : void
newDots ( GameObject selection ) : void
newInvader ( ) : void
newSelection ( ) : void
removeBlock ( GameObject block ) : void
removeInvader ( GameObject invader ) : void
reset ( ) : void
rotateCube ( string direction ) : int
setAlpha ( GameObject obj, float alpha ) : void
setSelectionPoints ( float &x, float &z ) : void
setSelectionVector ( GameObject block, float &x, float &z, float &y ) : void
swapIt ( ) : void
toggleGameMode ( ) : void
togglePause ( ) : void
toggleSelectorMode ( ) : void
updateCountDown ( ) : void
updateSelector ( GameObject newSelector ) : void

Private Methods

Méthode Description
delayReset ( ) : IEnumerator
delaySelection ( ) : IEnumerator
dotsAhoy ( ) : bool
getAngleForCubeSide ( int cubeSide ) : float
getMatching ( GameObject block = defaultBlock, List blocks = defaultBlocks ) : List
getSelectorHalf ( GameObject cursor ) : GameObject
getSelectorTouch ( GameObject cursor, Vector3 hDirection ) : GameObject
initCube ( ) : void
isBlockInSide ( GameObject block ) : bool
isDot ( GameObject selection ) : bool
isDotString ( GameObject selection ) : bool
isInBounds ( GameObject cursor ) : bool
isValidSelection ( GameObject cursor ) : bool
matchNext ( GameObject block, Vector3 &direction ) : GameObject
moveCube ( int startSide, int newSide, float rotateTime = 0.161f ) : IEnumerator
randColor ( ) : Color
removeBlocks ( List blocks, float start = 1f, float end = 0.002f, float rate = 6.54f ) : IEnumerator
setInvaderCoords ( float x, float z ) : List
swapColors ( Color selColor, Color sel2Color, float swapTime = 0.283f ) : IEnumerator
updateCubeSide ( ) : void

Method Details

FixedUpdate() public méthode

public FixedUpdate ( ) : void
Résultat void

OnApplicationPause() public méthode

public OnApplicationPause ( ) : void
Résultat void

OnGUI() public méthode

public OnGUI ( ) : void
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

checkSelection() public méthode

public checkSelection ( ) : void
Résultat void

clearAllBlocks() public méthode

public clearAllBlocks ( ) : void
Résultat void

clearBlocks() public méthode

public clearBlocks ( List matches ) : bool
matches List
Résultat bool

createColors() public méthode

public createColors ( ) : void
Résultat void

disableBlockFall() public méthode

public disableBlockFall ( ) : void
Résultat void

dropBlock() public méthode

public dropBlock ( float x, float y, float z, Color color ) : void
x float
y float
z float
color Color
Résultat void

dropInvader() public méthode

public dropInvader ( float x, float y, float z ) : void
x float
y float
z float
Résultat void

enableBlockFall() public méthode

public enableBlockFall ( ) : void
Résultat void

enableRotation() public méthode

public enableRotation ( ) : void
Résultat void

initBlocks() public méthode

public initBlocks ( ) : void
Résultat void

initRepeats() public méthode

public initRepeats ( ) : void
Résultat void

initReset() public méthode

public initReset ( ) : void
Résultat void

moveSelector() public méthode

public moveSelector ( string direction ) : void
direction string
Résultat void

newBlock() public méthode

public newBlock ( ) : void
Résultat void

newDots() public méthode

public newDots ( GameObject selection ) : void
selection GameObject
Résultat void

newInvader() public méthode

public newInvader ( ) : void
Résultat void

newSelection() public méthode

public newSelection ( ) : void
Résultat void

removeBlock() public méthode

public removeBlock ( GameObject block ) : void
block GameObject
Résultat void

removeInvader() public méthode

public removeInvader ( GameObject invader ) : void
invader GameObject
Résultat void

reset() public méthode

public reset ( ) : void
Résultat void

rotateCube() public méthode

public rotateCube ( string direction ) : int
direction string
Résultat int

setAlpha() public méthode

public setAlpha ( GameObject obj, float alpha ) : void
obj GameObject
alpha float
Résultat void

setSelectionPoints() public méthode

public setSelectionPoints ( float &x, float &z ) : void
x float
z float
Résultat void

setSelectionVector() public méthode

public setSelectionVector ( GameObject block, float &x, float &z, float &y ) : void
block GameObject
x float
z float
y float
Résultat void

swapIt() public méthode

public swapIt ( ) : void
Résultat void

toggleGameMode() public méthode

public toggleGameMode ( ) : void
Résultat void

togglePause() public méthode

public togglePause ( ) : void
Résultat void

toggleSelectorMode() public méthode

public toggleSelectorMode ( ) : void
Résultat void

updateCountDown() public méthode

public updateCountDown ( ) : void
Résultat void

updateSelector() public méthode

public updateSelector ( GameObject newSelector ) : void
newSelector GameObject
Résultat void

Property Details

block public_oe property

public GameObject block
Résultat GameObject

blockFall public_oe property

public bool blockFall
Résultat bool

canRotate public_oe property

public bool canRotate
Résultat bool

colorSwap public_oe property

public bool colorSwap
Résultat bool

cubeRotation public_oe property

public bool cubeRotation
Résultat bool

cubeSide public_oe property

public int cubeSide
Résultat int

invader public_oe property

public GameObject invader
Résultat GameObject

invaderHit public_oe property

public AudioSource,UnityEngine invaderHit
Résultat UnityEngine.AudioSource

newCubes public_oe property

public bool newCubes
Résultat bool

selectorClear public_oe property

public bool selectorClear
Résultat bool

selectorTex public_oe property

public Texture selectorTex
Résultat Texture

selectorTex2 public_oe property

public Texture selectorTex2
Résultat Texture