Пример #1
0
 public static void Shake(float duration, float amount)
 {
     instance._originalPos = instance.gameObject.transform.localPosition;
     instance.StopAllCoroutines();
     instance.StartCoroutine(instance.cShake(duration, amount));
 }