Skip to content

Connection Sequence

hardlydifficult edited this page Feb 27, 2017 · 3 revisions

Goal: When I place or update an item in the world, it's ghosted in that you can preview it but it's not actually there until a Human constructs it. If the item previously existed, it continues to work until construction begins. Once complete the final model is shown and machines turn on.

An example sequence for connections and 'ghost' objects.

  • Button: Select 'Belt' to place
  • PlacementController: Clone Belt
  • Belt: Create Ghost model & BeltLine
  • PlacementController: Update the Ghost transform
  • GameObjectNodes: Clear then rebuild connections
  • Node: Update state
  • Belt: Update model
  • Human: Start construction
  • GameObject: Disable current logic
  • Belt: Update model for construction
  • Human: Complete construction
  • GameObject: Destroy construction and ghost models
  • GameObject: Clone's transform and nodes statuses
  • GameObject: Update model (final state)

Clone this wiki locally