private void FixedUpdate() { if (rb.bodyType == RigidbodyType2D.Dynamic) { //rb.velocity = velocity; behaviour.UpdateProc(pattern); } }