void Start() { kelloggs.Clear(); SerialTest(); WaitTest(); CombinedTest(); Debug.Log(kelloggs.DebugLog()); }
public void DoShake() { origPosition = transform.position; currentShakeIntensity = shakeIntensity; shaking = true; kelloggs.Clear(); kelloggs.Add(new CerealLerpEvent <float>(currentShakeIntensity, 0f, fadeOutTime, Mathf.Lerp) { OnChange = (pChange) => currentShakeIntensity = pChange }); }
void Test() { kelloggs.Clear(); // Shrink the cube // Shrink(); // Blow the cube as a letter box Blow(); // Print the action queue Debug.Log(kelloggs.DebugLog()); }