Thanks for playing. I used all code in fixed update ,I had fixed it by putting it in void update! Have great day! :)