C# Class CubeKeyPuzzle, Hellbound

Logic for the cube combination puzzle to open the door in the famine crypt By Arvid Backman and Aleksi Lindeman
Inheritance: MonoBehaviour
Show file Open project: Backman/Hellbound

Public Properties

Property Type Description
availableCubesToPlace List
inspectCubesDummy GameObject
m_DoorOpenSound FMODAsset,
m_HighlightColor Color
m_MusicEmitter FMOD_StudioEventEmitter,
m_UseCubeSound FMODAsset,

Public Methods

Method Description
onCubeKeyDoorUse ( GameObject obj, bool tr ) : void
onPickupCubeKey ( GameObject obj, bool tr ) : void
onRequestOpenCubeDoor ( GameObject obj, bool tr ) : void
placeCube ( string name ) : void
zoomOut ( GameObject obj, bool tr ) : void

Private Methods

Method Description
Start ( ) : void
focusOnFirstCubeObject ( GameObject &obj ) : int
goToNextCube ( int startIndex, GameObject &obj ) : int
goToPreviousCube ( int startIndex, GameObject &obj ) : int
inputLogic ( ) : IEnumerator
onCubesFinishedSwitchingPos ( ) : void
onCubesSwitchedPos ( ) : void
onMovedOut ( ) : void
onMovedOutFurther ( ) : void
pickNextCube ( int currentIndex ) : IEnumerator

Method Details

onCubeKeyDoorUse() public method

public onCubeKeyDoorUse ( GameObject obj, bool tr ) : void
obj GameObject
tr bool
return void

onPickupCubeKey() public method

public onPickupCubeKey ( GameObject obj, bool tr ) : void
obj GameObject
tr bool
return void

onRequestOpenCubeDoor() public method

public onRequestOpenCubeDoor ( GameObject obj, bool tr ) : void
obj GameObject
tr bool
return void

placeCube() public method

public placeCube ( string name ) : void
name string
return void

zoomOut() public method

public zoomOut ( GameObject obj, bool tr ) : void
obj GameObject
tr bool
return void

Property Details

availableCubesToPlace public property

public List availableCubesToPlace
return List

inspectCubesDummy public property

public GameObject inspectCubesDummy
return GameObject

m_DoorOpenSound public property

public FMODAsset, m_DoorOpenSound
return FMODAsset,

m_HighlightColor public property

public Color m_HighlightColor
return Color

m_MusicEmitter public property

public FMOD_StudioEventEmitter, m_MusicEmitter
return FMOD_StudioEventEmitter,

m_UseCubeSound public property

public FMODAsset, m_UseCubeSound
return FMODAsset,