Table of Contents

Echo

Here we have some examples on how to build Echoes

Basic

  1. Creating the echo
  2. Setting the timeout to 100 seconds
  3. Setting the stop condition based on a local flag
  4. Setting a delay of 4 seconds
  5. Adding an event that is executed before the start of the echo
  6. Adding an event that is executed after the completion of the echo
  7. Starting the echo
Echo echo = new Echo()
    .SetTimeout(100f)
    .SetStopCondition((time) => echoShouldStopFlag)
    .SetDelay(4f)
    .OnStarting(() => Debug.Log("Before start."))
    .OnCompleted(() => Debug.Log("After completion!"))
    .Start();

Simple Motion

  1. Creating the echo with a timeout of 10s
  2. Selecting the object to be animated
  3. Applying the MoveTowards motion
  4. Starting the echo
Echo echo = new Echo(10f)
    .For(transform)
        .MoveTowards(otherTransform)
    .Start();

Character Control

This is an example of the many functionalities that can be achieved with echoes. This is controlling the character using simple input.

  1. Creating the echo for the CharacterController
  2. Applying the Move motion
  3. Applying the Rotate motion
  4. Starting the echo
Echo echo = CharacterController
    .Echo()
        .Move(10f)
        .Rotate(Camera.transform, 5f)
    .Start();