/// <summary> /// 添加“摄像机围绕物体旋转” /// </summary> public MCObjectRatation AddCameraCenterObjectRotation() { ObjectRatation = OperaObject.GetComponent <MCObjectRatation>() ?? OperaObject.AddComponent <MCObjectRatation>(); ObjectRatation.SetOperaType(ObjectOperaType.摄像机围绕物体旋转); ObjectRatation.hideFlags = HideFlags.HideInInspector; return(ObjectRatation); }
/// <summary> /// 添加“物体自身旋转” /// </summary> public MCObjectRatation AddSelfRotation() { ObjectRatation = OperaObject.GetComponent <MCObjectRatation>() ?? OperaObject.AddComponent <MCObjectRatation>(); ObjectRatation.SetOperaType(ObjectOperaType.物体自身旋转); ObjectRatation.hideFlags = HideFlags.HideInInspector; return(ObjectRatation); }