修改图片
|
|
@ -67,7 +67,7 @@ public class Control3DModelBt : MonoBehaviour
|
||||||
highlightEffect.outlineWidth = .1f;
|
highlightEffect.outlineWidth = .1f;
|
||||||
}
|
}
|
||||||
|
|
||||||
startRot=transform.localRotation;
|
startRot = transform.localRotation;
|
||||||
|
|
||||||
}
|
}
|
||||||
void Start()
|
void Start()
|
||||||
|
|
@ -118,7 +118,14 @@ public class Control3DModelBt : MonoBehaviour
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ModelBt.DOLocalRotateQuaternion(Quaternion.Euler(35, 0, 0), .5f);
|
if (!ModelBt.transform.parent.name.Contains("181"))
|
||||||
|
{
|
||||||
|
ModelBt.DOLocalRotateQuaternion(Quaternion.Euler(35, 0, 0), .5f);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ModelBt.DOLocalRotateQuaternion(Quaternion.Euler(0, 0, 0), .5f);
|
||||||
|
}
|
||||||
transform.GetComponent<Collider>().enabled = false;
|
transform.GetComponent<Collider>().enabled = false;
|
||||||
if (ModelLight != null)
|
if (ModelLight != null)
|
||||||
{
|
{
|
||||||
|
|
@ -153,10 +160,10 @@ public class Control3DModelBt : MonoBehaviour
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case BtType.ÆÕͨ°´Å¥:
|
case BtType.ÆÕͨ°´Å¥:
|
||||||
float yPos= ModelBt.localPosition.y;
|
float yPos = ModelBt.localPosition.y;
|
||||||
if (isInit == false)
|
if (isInit == false)
|
||||||
{
|
{
|
||||||
// ModelBt.DOLocalMoveY(yPos+0.004f, .1f);
|
// ModelBt.DOLocalMoveY(yPos+0.004f, .1f);
|
||||||
if (ModelLight != null)
|
if (ModelLight != null)
|
||||||
{
|
{
|
||||||
ModelLight.material.EnableKeyword("_EMISSION");
|
ModelLight.material.EnableKeyword("_EMISSION");
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 300 KiB After Width: | Height: | Size: 169 KiB |
|
Before Width: | Height: | Size: 217 KiB After Width: | Height: | Size: 220 KiB |
|
Before Width: | Height: | Size: 217 KiB After Width: | Height: | Size: 220 KiB |
|
Before Width: | Height: | Size: 256 KiB After Width: | Height: | Size: 259 KiB |
|
Before Width: | Height: | Size: 207 KiB After Width: | Height: | Size: 210 KiB |
|
Before Width: | Height: | Size: 217 KiB After Width: | Height: | Size: 219 KiB |
|
Before Width: | Height: | Size: 225 KiB After Width: | Height: | Size: 228 KiB |
|
Before Width: | Height: | Size: 211 KiB After Width: | Height: | Size: 212 KiB |
|
Before Width: | Height: | Size: 275 KiB After Width: | Height: | Size: 278 KiB |
|
Before Width: | Height: | Size: 203 KiB After Width: | Height: | Size: 112 KiB |