linespawner - eisclimber/ExPresS-XR GitHub Wiki

LineSpawner

Class in ExPresSXR.Minigames.Archery.TargetSpawner.Line

Inherits from TargetSpawnerBase

Summary

A spawner that spawns a single target and moves it with a certain speed between two target positions.
Despawning/Resets of the target happen based on collisions with an ObjectCollisionDetector.

Objects can either be only good or bad, while the selection can be randomized. The selection of good and bad objects and visuals is also configurable and randomizable.

public class LineSpawner : TargetSpawnerBase

Methods

Name Description
CreateNewTarget() Creates a new target. Not switching directions.
CreateNewTarget(bool) Creates a new target, switching directions based on the parameter.
SpawnNewTargetFromCollision(Collider) Creates a new target from a collision.
StartSpawning() Starts spawning new target(s).
StopSpawning() Stop spawning target(s).

Properties

Name Description
CurrentDirection Direction of the current target.
CurrentSpawnAnchor Where the current target was spawned at.
CurrentTarget Reference to the current target on the line.
IsCurrentlyLeftToRight Whether or not the current target moves from left to right or reversed.
IsCurrentTargetBad Whether or not the current target is bad or good.
⚠️ **GitHub.com Fallback** ⚠️