Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Flafla2 committed May 22, 2016
1 parent d40ee2a commit 11740e4
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 8 deletions.
15 changes: 13 additions & 2 deletions Assets/Vive-Teleporter/Example Scenes/testbed_vive.unity
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,11 @@ MonoBehaviour:
type: 2}
m_PrefabInternal: {fileID: 579635359}
m_Script: {fileID: 11500000, guid: bc6771e1245a80f4bb4d74aa5af717bd, type: 3}
--- !u!95 &579635361 stripped
Animator:
m_PrefabParentObject: {fileID: 9569928, guid: 71ca5259ca9ec7947975936be41698a7,
type: 2}
m_PrefabInternal: {fileID: 579635359}
--- !u!1 &710685919
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -682,12 +687,12 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: a200554d92bd8e54792301df3fcaf328, type: 3}
m_Name:
m_EditorClassIdentifier:
Pointer: {fileID: 0}
Pointer: {fileID: 1241618616}
OriginTransform: {fileID: 1611824065}
HeadTransform: {fileID: 154042613}
TeleportFadeDuration: 0.2
HapticClickAngleStep: 10
NavmeshAnimator: {fileID: 0}
NavmeshAnimator: {fileID: 579635361}
FadeMaterial: {fileID: 2100000, guid: 5ba70d58d085f2b44b315edf2d739376, type: 2}
Controllers:
- {fileID: 1426292698}
Expand Down Expand Up @@ -912,6 +917,12 @@ Prefab:
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: 9e047e2aefaa8dc47b373572e8c58866, type: 2}
m_IsPrefabParent: 0
--- !u!114 &1241618616 stripped
MonoBehaviour:
m_PrefabParentObject: {fileID: 11446438, guid: 9e047e2aefaa8dc47b373572e8c58866,
type: 2}
m_PrefabInternal: {fileID: 1241618615}
m_Script: {fileID: 11500000, guid: 4fab14c273ccf644493c840d4ecf5ab2, type: 3}
--- !u!1 &1312848188
GameObject:
m_ObjectHideFlags: 0
Expand Down
8 changes: 8 additions & 0 deletions Assets/Vive-Teleporter/LICENCE.txt.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Vive-Teleporter/README.txt.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Assets/Vive-Teleporter/Scripts/ParabolicPointer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ void Update()
Vector3 velocity_normalized;
CurrentParabolaAngle = ClampInitialVelocity(ref velocity, out velocity_normalized);

bool didHit = CalculateParabolicCurve(
CalculateParabolicCurve(
transform.position,
velocity,
Acceleration, PointSpacing, PointCount,
Expand Down
5 changes: 0 additions & 5 deletions Assets/Vive-Teleporter/Scripts/TeleportVive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,8 @@ public class TeleportVive : MonoBehaviour {
private bool Teleporting = false;
private bool FadingIn = false;
private float TeleportTimeMarker = -1;
private Vector3 TeleportDestination;

private Mesh PlaneMesh;
private Camera cam;

void Start()
{
Expand All @@ -71,8 +69,6 @@ void Start()
PlaneMesh.RecalculateBounds();

// Set some standard variables
cam = GetComponent<Camera>();

MaterialFadeID = Shader.PropertyToID("_Fade");
EnabledAnimatorID = Animator.StringToHash("Enabled");

Expand Down Expand Up @@ -185,7 +181,6 @@ void Update ()
{
// Begin teleport sequence
Teleporting = true;
TeleportDestination = Pointer.SelectedPoint;
TeleportTimeMarker = Time.time;
}

Expand Down

0 comments on commit 11740e4

Please sign in to comment.