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