private Transform mainCamera;
private void Start()
{
mainCamera = transform;
}
public void OnAreaButtonClicked()
{
mainCamera.DOMove(areaCameraPositon.position, 1);
mainCamera.DORotate(areaCameraPositon.rotation, 1);
print("Clicked");
}
错误信息:Assets\Scripts\Camera\MainCameraControl.cs(20,9): error CS1929: 'Transform' does not contain a definition for 'DORotate' and the best extension method overload 'ShortcutExtensions.DORotate(Rigidbody, Vector3, float, RotateMode)' requires a receiver of type 'Rigidbody'
domove运行正常,rotate报错
同学你好,参数不对,可以参考一下:
https://blog.csdn.net/wealupa/article/details/108234489