當前位置:編程學習大全網 - 網站源碼 - unity2D中c#腳本調用rigidbody2d時報錯怎麽辦?

unity2D中c#腳本調用rigidbody2d時報錯怎麽辦?

樓樓我會了,是unity版本的問題,妳把其中兩句改成\x0d\if(Mathf.Abs(GetComponent().velocity.x) > maxSpeed)\x0d\GetComponent().velocity = new Vector2(Mathf.Sign(GetComponent().velocity.x) * maxSpeed, GetComponent().velocity.y);\x0d\\x0d\就可以了

  • 上一篇:績優股都是什麽有那些股票
  • 下一篇:uu跑腿和開車哪個賺錢?
  • copyright 2024編程學習大全網