Show / Hide Table of Contents

Class NoteSpawner

Contains note mapping data and spawns notes at the correct time.The updating is triggered from the 'Game' object, which contains the main loop updating the spawner objects.

Inheritance
System.Object
NoteSpawner
Namespace: GameSpawners
Assembly: cs.temp.dll.dll
Syntax
public class NoteSpawner : ScriptableObject

Constructors

NoteSpawner(List<NoteConfig>, Single, GameObject, GameObject, GameObject, GameObject, Transform)

Declaration
public NoteSpawner(List<NoteConfig> noteData, float bps, GameObject leftTimedBlock, GameObject rightTimedBlock, GameObject leftTimedBlockNoDirection, GameObject rightTimedBlockNoDirection, Transform generated)
Parameters
Type Name Description
System.Collections.Generic.List<NoteConfig> noteData
System.Single bps
GameObject leftTimedBlock
GameObject rightTimedBlock
GameObject leftTimedBlockNoDirection
GameObject rightTimedBlockNoDirection
Transform generated

Fields

BLOCK_DISTANCE

Declaration
public const float BLOCK_DISTANCE = 20F
Field Value
Type Description
System.Single

BLOCK_TRAVEL_TIME

Declaration
public const float BLOCK_TRAVEL_TIME = 1.5F
Field Value
Type Description
System.Single

Methods

checkBlocksSpawnable(Single)

Declaration
public void checkBlocksSpawnable(float timePassed)
Parameters
Type Name Description
System.Single timePassed

getBlocks()

Declaration
public List<GameObject> getBlocks()
Returns
Type Description
System.Collections.Generic.List<GameObject>

getRelativeTravelTime()

Declaration
public float getRelativeTravelTime()
Returns
Type Description
System.Single
Back to top Generated by DocFX