• 2022-05-27 问题

    现有物体A,A物体添加有Rigidbody组件。在脚本中获取A物体的Rigidbody组件的方法是( )。 A: A.GetCompotent<Rigidbody>() B: Rigidbody.GetCompotent<A>() C: A.GetCompotent<>(Rigidbody) D: GetCompotent<A>(Rigidbody)

    现有物体A,A物体添加有Rigidbody组件。在脚本中获取A物体的Rigidbody组件的方法是( )。 A: A.GetCompotent<Rigidbody>() B: Rigidbody.GetCompotent<A>() C: A.GetCompotent<>(Rigidbody) D: GetCompotent<A>(Rigidbody)

  • 1