Fix 3rd camera rotations
This commit is contained in:
parent
06075d9748
commit
7fddc312d7
|
@ -4,13 +4,12 @@ using UnityEngine;
|
||||||
|
|
||||||
public class ObjectRotate : MonoBehaviour
|
public class ObjectRotate : MonoBehaviour
|
||||||
{
|
{
|
||||||
[SerializeField]
|
[SerializeField] private Vector3 _vector;
|
||||||
private Vector3 _vector;
|
[SerializeField] private float _speed = 10;
|
||||||
|
|
||||||
|
|
||||||
private void Update()
|
private void Update()
|
||||||
{
|
{
|
||||||
transform.Rotate(_vector);
|
transform.Rotate(_vector * _speed * Time.deltaTime);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -132,10 +132,15 @@ PrefabInstance:
|
||||||
propertyPath: m_LocalRotation.y
|
propertyPath: m_LocalRotation.y
|
||||||
value: -0.6073759
|
value: -0.6073759
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: _speed
|
||||||
|
value: 150
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: _vector.y
|
propertyPath: _vector.y
|
||||||
value: 0.04
|
value: 0.01
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2559237996015783021, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
- target: {fileID: 2559237996015783021, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
type: 3}
|
type: 3}
|
||||||
|
|
|
@ -166,10 +166,15 @@ PrefabInstance:
|
||||||
propertyPath: m_LocalPosition.z
|
propertyPath: m_LocalPosition.z
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: _speed
|
||||||
|
value: 150
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: _vector.y
|
propertyPath: _vector.y
|
||||||
value: -0.05
|
value: -0.01
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2559237996015783021, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
- target: {fileID: 2559237996015783021, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
type: 3}
|
type: 3}
|
||||||
|
|
|
@ -166,10 +166,15 @@ PrefabInstance:
|
||||||
propertyPath: m_LocalRotation.z
|
propertyPath: m_LocalRotation.z
|
||||||
value: -0.060016606
|
value: -0.060016606
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: _speed
|
||||||
|
value: 150
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: _vector.y
|
propertyPath: _vector.y
|
||||||
value: 0.03
|
value: 0.01
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2559237996015783021, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
- target: {fileID: 2559237996015783021, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
type: 3}
|
type: 3}
|
||||||
|
|
|
@ -67,10 +67,15 @@ PrefabInstance:
|
||||||
propertyPath: m_LocalPosition.z
|
propertyPath: m_LocalPosition.z
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: _speed
|
||||||
|
value: 150
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: _vector.y
|
propertyPath: _vector.y
|
||||||
value: 0.05
|
value: 0.01
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2559237996015783021, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
- target: {fileID: 2559237996015783021, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
type: 3}
|
type: 3}
|
||||||
|
|
|
@ -172,6 +172,16 @@ PrefabInstance:
|
||||||
propertyPath: m_LocalPosition.z
|
propertyPath: m_LocalPosition.z
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: _speed
|
||||||
|
value: 40
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: _vector.y
|
||||||
|
value: 0.01
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2559237996015783021, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
- target: {fileID: 2559237996015783021, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: lengthInSec
|
propertyPath: lengthInSec
|
||||||
|
|
|
@ -341,10 +341,15 @@ PrefabInstance:
|
||||||
propertyPath: m_LocalPosition.z
|
propertyPath: m_LocalPosition.z
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: _speed
|
||||||
|
value: 150
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: _vector.y
|
propertyPath: _vector.y
|
||||||
value: -0.05
|
value: 0.01
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2559237996015783021, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
- target: {fileID: 2559237996015783021, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
type: 3}
|
type: 3}
|
||||||
|
@ -442,6 +447,11 @@ PrefabInstance:
|
||||||
propertyPath: m_IsActive
|
propertyPath: m_IsActive
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4421202291124940304, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 6
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 4421202291124940304, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
- target: {fileID: 4421202291124940304, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.x
|
propertyPath: m_LocalPosition.x
|
||||||
|
|
|
@ -261,6 +261,11 @@ PrefabInstance:
|
||||||
propertyPath: m_LocalPosition.z
|
propertyPath: m_LocalPosition.z
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: _speed
|
||||||
|
value: 150
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: _vector.y
|
propertyPath: _vector.y
|
||||||
|
@ -377,6 +382,11 @@ PrefabInstance:
|
||||||
propertyPath: m_LocalPosition.z
|
propertyPath: m_LocalPosition.z
|
||||||
value: -96
|
value: -96
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4646941646174813383, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AllowDynamicResolution
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 5292507482521882122, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
- target: {fileID: 5292507482521882122, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.x
|
propertyPath: m_LocalPosition.x
|
||||||
|
|
|
@ -52,10 +52,15 @@ PrefabInstance:
|
||||||
propertyPath: m_LocalPosition.z
|
propertyPath: m_LocalPosition.z
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: _speed
|
||||||
|
value: 150
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: _vector.y
|
propertyPath: _vector.y
|
||||||
value: 0.08
|
value: 0.01
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2559237996015783021, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
- target: {fileID: 2559237996015783021, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
type: 3}
|
type: 3}
|
||||||
|
|
|
@ -62,10 +62,15 @@ PrefabInstance:
|
||||||
propertyPath: m_LocalPosition.z
|
propertyPath: m_LocalPosition.z
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: _speed
|
||||||
|
value: 150
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: _vector.y
|
propertyPath: _vector.y
|
||||||
value: -0.12
|
value: -0.01
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2559237996015783021, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
- target: {fileID: 2559237996015783021, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
type: 3}
|
type: 3}
|
||||||
|
|
|
@ -162,10 +162,15 @@ PrefabInstance:
|
||||||
propertyPath: m_LocalPosition.z
|
propertyPath: m_LocalPosition.z
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: _speed
|
||||||
|
value: 150
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
- target: {fileID: 2466485092146797878, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: _vector.y
|
propertyPath: _vector.y
|
||||||
value: 0.05
|
value: 0.01
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2559237996015783021, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
- target: {fileID: 2559237996015783021, guid: f7c18ea67fe64514a8e28b62367e16f7,
|
||||||
type: 3}
|
type: 3}
|
||||||
|
|
Loading…
Reference in New Issue