添加新物品
This commit is contained in:
@@ -27,7 +27,7 @@ namespace NBF
|
||||
|
||||
Quality.SetQuality(ItemInfo.Config.Quality);
|
||||
|
||||
Content.Gear.visible = false;
|
||||
Content.Gear.visible = true;
|
||||
Content.Basic.SetInfo(ItemInfo);
|
||||
Content.Gear.SetInfo(ItemInfo);
|
||||
|
||||
|
||||
@@ -106,6 +106,7 @@ namespace NBF
|
||||
{
|
||||
if (_model != null)
|
||||
{
|
||||
ViewerSettings = null;
|
||||
_model.gameObject.SetActive(false);
|
||||
Object.Destroy(_model.gameObject);
|
||||
_model = null;
|
||||
|
||||
@@ -93,28 +93,6 @@ namespace NBF
|
||||
{
|
||||
_renderImage.UpdateRotation(gesture.position);
|
||||
}
|
||||
|
||||
// var gesture = context.sender as SwipeGesture;
|
||||
// if (gesture == null) return;
|
||||
// var v = Vector3.zero;
|
||||
//
|
||||
//
|
||||
// if (context.inputEvent.button == 0)
|
||||
// {
|
||||
// v.y = -gesture.delta.x * 0.2f;
|
||||
// v.z = -gesture.delta.y * 0.2f;
|
||||
// if (!gesture.snapping)
|
||||
// {
|
||||
// v.y = 0;
|
||||
// v.z = 0;
|
||||
// }
|
||||
//
|
||||
// if (Mathf.Abs(v.y) < 1) //消除手抖影响
|
||||
// v.y = 0;
|
||||
// if (Mathf.Abs(v.z) < 1) //消除手抖影响
|
||||
// v.z = 0;
|
||||
// _renderImage.StartRotate(v);
|
||||
// }
|
||||
}
|
||||
|
||||
private void OnSwipeEnd(EventContext context)
|
||||
|
||||
Reference in New Issue
Block a user