C# Class BlockManager, feztris

Inheritance: MonoBehaviour
ファイルを表示 Open project: chadpaulson/feztris Class Usage Examples

Public Properties

Property 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

Public Methods

Method 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

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

public FixedUpdate ( ) : void
return void

OnApplicationPause() public method

public OnApplicationPause ( ) : void
return void

OnGUI() public method

public OnGUI ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

checkSelection() public method

public checkSelection ( ) : void
return void

clearAllBlocks() public method

public clearAllBlocks ( ) : void
return void

clearBlocks() public method

public clearBlocks ( List matches ) : bool
matches List
return bool

createColors() public method

public createColors ( ) : void
return void

disableBlockFall() public method

public disableBlockFall ( ) : void
return void

dropBlock() public method

public dropBlock ( float x, float y, float z, Color color ) : void
x float
y float
z float
color Color
return void

dropInvader() public method

public dropInvader ( float x, float y, float z ) : void
x float
y float
z float
return void

enableBlockFall() public method

public enableBlockFall ( ) : void
return void

enableRotation() public method

public enableRotation ( ) : void
return void

initBlocks() public method

public initBlocks ( ) : void
return void

initRepeats() public method

public initRepeats ( ) : void
return void

initReset() public method

public initReset ( ) : void
return void

moveSelector() public method

public moveSelector ( string direction ) : void
direction string
return void

newBlock() public method

public newBlock ( ) : void
return void

newDots() public method

public newDots ( GameObject selection ) : void
selection GameObject
return void

newInvader() public method

public newInvader ( ) : void
return void

newSelection() public method

public newSelection ( ) : void
return void

removeBlock() public method

public removeBlock ( GameObject block ) : void
block GameObject
return void

removeInvader() public method

public removeInvader ( GameObject invader ) : void
invader GameObject
return void

reset() public method

public reset ( ) : void
return void

rotateCube() public method

public rotateCube ( string direction ) : int
direction string
return int

setAlpha() public method

public setAlpha ( GameObject obj, float alpha ) : void
obj GameObject
alpha float
return void

setSelectionPoints() public method

public setSelectionPoints ( float &x, float &z ) : void
x float
z float
return void

setSelectionVector() public method

public setSelectionVector ( GameObject block, float &x, float &z, float &y ) : void
block GameObject
x float
z float
y float
return void

swapIt() public method

public swapIt ( ) : void
return void

toggleGameMode() public method

public toggleGameMode ( ) : void
return void

togglePause() public method

public togglePause ( ) : void
return void

toggleSelectorMode() public method

public toggleSelectorMode ( ) : void
return void

updateCountDown() public method

public updateCountDown ( ) : void
return void

updateSelector() public method

public updateSelector ( GameObject newSelector ) : void
newSelector GameObject
return void

Property Details

block public_oe property

public GameObject block
return GameObject

blockFall public_oe property

public bool blockFall
return bool

canRotate public_oe property

public bool canRotate
return bool

colorSwap public_oe property

public bool colorSwap
return bool

cubeRotation public_oe property

public bool cubeRotation
return bool

cubeSide public_oe property

public int cubeSide
return int

invader public_oe property

public GameObject invader
return GameObject

invaderHit public_oe property

public AudioSource,UnityEngine invaderHit
return UnityEngine.AudioSource

newCubes public_oe property

public bool newCubes
return bool

selectorClear public_oe property

public bool selectorClear
return bool

selectorTex public_oe property

public Texture selectorTex
return Texture

selectorTex2 public_oe property

public Texture selectorTex2
return Texture