C# Class Platform.PlatformSpawner

Inheritance: UnityEngine.MonoBehaviour
Exibir arquivo Open project: matthewAURA/SlashRunner

Public Properties

Property Type Description
spawn UnityEngine.Transform
target UnityEngine.Transform

Public Methods

Method Description
Start ( ) : void
Update ( ) : void
registerListener ( PlatformSpawnListener p ) : void

Protected Methods

Method Description
shouldSpawnNewSection ( ) : bool

Private Methods

Method Description
calculateSpawnPosition ( ) : Vector3
shouldChangePlatformHeight ( ) : bool
shouldSpawnNewGameObject ( ) : bool
spawnSection ( Vector3 position ) : Transform

Method Details

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

registerListener() public method

public registerListener ( PlatformSpawnListener p ) : void
p PlatformSpawnListener
return void

shouldSpawnNewSection() protected method

protected shouldSpawnNewSection ( ) : bool
return bool

Property Details

spawn public_oe property

Template to spawn more of
public Transform,UnityEngine spawn
return UnityEngine.Transform

target public_oe property

Object to follow
public Transform,UnityEngine target
return UnityEngine.Transform