Exemplo n.º 1
0
 /// <summary>
 /// Shake the specified duration and amount.
 /// </summary>
 /// <param name="duration">Duration in this case is how many cycles/steps a capera is going to move</param>
 /// <param name="amount">Amount is how craze the camera is going to move</param>
 public void Shake(int duration, float amount)
 {
     instance.StopAllCoroutines();
     isFollow    = false;
     originalPos = transform.localPosition;
     instance.StartCoroutine(instance.cShake(duration, amount));
 }