Gameplay and Testing
- For local testing, run the game from the Game scene in the editor;
- For online multiplayer, run the game from the Menu scene.
StaticColliderManager handles the visual representation of static colliders in Unity. The visual representation of the static collider is defined in its associated
A static collider's visibility dependends on its position relative to the local player.
ExplosionManager handles the visual representation of explosions in unity. Explosions are not an entity, but only an effect shown based on simulation events. Explosions are shown even for predicted events. If the prediction was wrong, the explosion is destroyed; to detect this confirmation and cancellation of the event, the
CallbackEventCanceled callbacks are used.
The Side Scrolling Runner Sample comes with three different visual schemes:
The static collider’s visual is represented by the
StaticColliderRuntimeVisual. It contains several sprite renderers representing different parts of the platform (corners, edgesand center. The edges and center are scaled based on the platform size).