public KnockBack(Rigidbody2D @this) { this._rigidbody = @this; Easily.StartCoroutine(_knockback()); }
public KnockBack(Collider2D @this) { this._rigidbody = @this.attachedRigidbody; Easily.StartCoroutine(_knockback()); }
public KnockBack(GameObject @this) { this._rigidbody = @this.GetComponent <Rigidbody2D>(); Easily.StartCoroutine(_knockback()); }
public KnockBack(Collision2D @this) { this._rigidbody = @this.rigidbody; Easily.StartCoroutine(_knockback()); }
/// <summary> /// Explodes /// </summary> /// <param name="sprite"></param> public Exploder(Sprite sprite) { _sprite = sprite; Easily.StartCoroutine(Splode()); }