public static void ShakeObj(float duration, float amount) { instance._originalPos = instance.gameObject.transform.localPosition; instance.StopAllCoroutines(); instance.StartCoroutine(instance.cShake(duration, amount, new Vector3())); }