public void Play(BreakCause cause, Quaternion spriteRot) { GetComponent <Animator>().SetTrigger(cause.ToString()); sprite.transform.rotation = spriteRot; Destroy(gameObject, 5f); }
public void Play(BreakCause cause) { GetComponent <Animator>().SetTrigger(cause.ToString()); Destroy(gameObject, 5f); }