Skip to content

Commit

Permalink
Fix head tilt
Browse files Browse the repository at this point in the history
  • Loading branch information
y3lousso committed Apr 16, 2018
1 parent 42a9999 commit b4429e8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Assets/Scenes/FirstAid/FirstAid.unity
Original file line number Diff line number Diff line change
Expand Up @@ -14490,7 +14490,7 @@ MonoBehaviour:
pain: {fileID: 8300000, guid: 84d1b7c9c564ff74f95d11bb2c460a00, type: 3}
fall: {fileID: 8300000, guid: 413eb45e9d8464a48a020f1dc68f2e48, type: 3}
head: {fileID: 1049220001}
endRotation: {x: 210, y: -180, z: 180}
rotationAngle: -25
rotationTime: 2
--- !u!95 &535092735
Animator:
Expand Down Expand Up @@ -24035,7 +24035,7 @@ Transform:
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1433007643}
m_LocalRotation: {x: 0.008263219, y: -0.055008817, z: 0.0001490314, w: 0.99845165}
m_LocalRotation: {x: 0.00826322, y: -0.05500882, z: 0.00014903142, w: 0.9984517}
m_LocalPosition: {x: -0.1978, y: 0.368, z: 0.3143}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
Expand Down Expand Up @@ -25448,7 +25448,7 @@ Mesh:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: pb_Mesh49654
m_Name: pb_Mesh17618
serializedVersion: 8
m_SubMeshes:
- serializedVersion: 2
Expand Down
1 change: 0 additions & 1 deletion Assets/Scripts/Colleague/Liam.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public class Liam : MonoBehaviour {
[SerializeField] private Transform head;

[Header("Head Tilt")]
[Range(15,30)]
public float rotationAngle = 25;
[SerializeField] private float rotationTime = 2f;

Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/FirstAids/Steps/FirstAid_Step06.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ void Update()
if ( (this.IsActivated && LiamInteraction.instance.leftHand.isHolding | LiamInteraction.instance.rightHand.isHolding) && AudioTrigger.instance.isTalking)
{
StopCoroutine(AudioTrigger.instance.DetectAudio());
this.Complete();
Invoke("Complete", 2f);
}
}
// Start after the activation of the step
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/FirstAids/Steps/FirstAid_Step16.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ void Update()
if (this.IsActivated && AudioTrigger.instance.isTalking)
{
StopCoroutine(AudioTrigger.instance.DetectAudio());
this.Complete();
Invoke("Complete", 2f);
}
}
// Start after the activation of the step
Expand Down

0 comments on commit b4429e8

Please sign in to comment.