Nocturna
    Preparing search index...

    VictoryCondition represents the end-of-level victory trigger in the game.

    • Handles mesh, physics, animation, sound, and particle effects.
    • Implements the GameObject and ParentNodeObserver interfaces.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    mesh: Mesh[] = []
    victoryAggregate: PhysicsAggregate
    Type: string = "victory_condition"

    Methods

    • Adds a sound effect to the victory object.

      Parameters

      • name: string

        The sound name.

      • sound: StaticSound

        The StaticSound instance.

      Returns void

    • Called when the parent node starts rotating (not used here).

      Returns void

    • Plays a sound effect by name.

      Parameters

      • name: string

        The sound name.

      Returns void