Skip to content

Commit 8d8290b

Browse files
committed
Better license headers in OSVR-Unity
1 parent 2dabb92 commit 8d8290b

19 files changed

Lines changed: 390 additions & 252 deletions

OSVR-Unity/Assets/OSVRUnity/Sample/Demo/Scripts/Managers/ColorManager.cs

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/// OSVR-Unity Demo
2+
///
3+
/// http://sensics.com/osvr
4+
///
5+
/// <copyright>
6+
/// Copyright 2014 Sensics, Inc.
7+
///
8+
/// Licensed under the Apache License, Version 2.0 (the "License");
9+
/// you may not use this file except in compliance with the License.
10+
/// You may obtain a copy of the License at
11+
///
12+
/// http://www.apache.org/licenses/LICENSE-2.0
13+
///
14+
/// Unless required by applicable law or agreed to in writing, software
15+
/// distributed under the License is distributed on an "AS IS" BASIS,
16+
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
/// See the License for the specific language governing permissions and
18+
/// limitations under the License.
19+
/// </copyright>
20+
121
/// <summary>
222
/// Author: Bob Berkebile
323
/// Email: bob@bullyentertainment.com || bobb@pixelplacement.com
@@ -29,11 +49,11 @@ public class ColorManager : MonoBehaviour
2949
{
3050
void OnGUI()
3151
{
32-
if ( GUILayout.Button( "Color Up" ) )
52+
if ( GUILayout.Button( "Color Up" ) )
3353
{
3454
ChangeColorNext();
3555
}
36-
if ( GUILayout.Button( "Color Down" ) )
56+
if ( GUILayout.Button( "Color Down" ) )
3757
{
3858
ChangeColorPrevious();
3959
}
@@ -74,13 +94,13 @@ public static void Unregister( IColorChanger colorChanger )
7494

7595
public void ChangeColor( int index )
7696
{
77-
if ( index > colors.Length - 1 || index < 0 )
97+
if ( index > colors.Length - 1 || index < 0 )
7898
{
7999
Debug.LogError( "Color value out of range." );
80100
return;
81101
}
82102

83-
ApplyColor( colors[ index ].color );
103+
ApplyColor( colors[ index ].color );
84104
}
85105

86106
public void ChangeColor( string name )
@@ -96,7 +116,7 @@ public void ChangeColor( string name )
96116
}
97117
}
98118

99-
if ( found != null )
119+
if ( found != null )
100120
{
101121
ApplyColor( found.color );
102122
}else{
@@ -120,7 +140,7 @@ public void ChangeColorPrevious()
120140
#region Private Methods
121141
void ApplyColor( Color color )
122142
{
123-
foreach( IColorChanger item in _colorChangers )
143+
foreach( IColorChanger item in _colorChangers )
124144
{
125145
item.ChangeColor( color );
126146
}

OSVR-Unity/Assets/OSVRUnity/Sample/Demo/Scripts/Objects/ColorChanger.cs

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/// OSVR-Unity Demo
2+
///
3+
/// http://sensics.com/osvr
4+
///
5+
/// <copyright>
6+
/// Copyright 2014 Sensics, Inc.
7+
///
8+
/// Licensed under the Apache License, Version 2.0 (the "License");
9+
/// you may not use this file except in compliance with the License.
10+
/// You may obtain a copy of the License at
11+
///
12+
/// http://www.apache.org/licenses/LICENSE-2.0
13+
///
14+
/// Unless required by applicable law or agreed to in writing, software
15+
/// distributed under the License is distributed on an "AS IS" BASIS,
16+
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
/// See the License for the specific language governing permissions and
18+
/// limitations under the License.
19+
/// </copyright>
20+
121
/// <summary>
222
/// Author: Bob Berkebile
323
/// Email: bob@bullyentertainment.com || bobb@pixelplacement.com
@@ -68,15 +88,15 @@ IEnumerator ApplyChangeColor()
6888

6989
GetColor();
7090

71-
while (true)
91+
while (true)
7292
{
7393
float percentage = ( Time.realtimeSinceStartup - startTime ) / ColorManager.duration;
74-
94+
7595
_currentColor = Color.Lerp( _startColor, _targetColor, percentage );
7696

7797
SetColor();
7898

79-
if ( percentage >= 1 )
99+
if ( percentage >= 1 )
80100
{
81101
_currentColor = _targetColor;
82102
SetColor();
@@ -87,5 +107,3 @@ IEnumerator ApplyChangeColor()
87107
}
88108
#endregion
89109
}
90-
91-

OSVR-Unity/Assets/OSVRUnity/Sample/Scripts/SampleAnalog.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/// OSVR-Unity Connection
2+
///
3+
/// http://sensics.com/osvr
4+
///
5+
/// <copyright>
6+
/// Copyright 2014 Sensics, Inc.
7+
///
8+
/// Licensed under the Apache License, Version 2.0 (the "License");
9+
/// you may not use this file except in compliance with the License.
10+
/// You may obtain a copy of the License at
11+
///
12+
/// http://www.apache.org/licenses/LICENSE-2.0
13+
///
14+
/// Unless required by applicable law or agreed to in writing, software
15+
/// distributed under the License is distributed on an "AS IS" BASIS,
16+
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
/// See the License for the specific language governing permissions and
18+
/// limitations under the License.
19+
/// </copyright>
20+
121
using UnityEngine;
222
using System.Collections;
323

OSVR-Unity/Assets/OSVRUnity/Sample/Scripts/SampleButtonScript.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/// OSVR-Unity Connection
2+
///
3+
/// http://sensics.com/osvr
4+
///
5+
/// <copyright>
6+
/// Copyright 2014 Sensics, Inc.
7+
///
8+
/// Licensed under the Apache License, Version 2.0 (the "License");
9+
/// you may not use this file except in compliance with the License.
10+
/// You may obtain a copy of the License at
11+
///
12+
/// http://www.apache.org/licenses/LICENSE-2.0
13+
///
14+
/// Unless required by applicable law or agreed to in writing, software
15+
/// distributed under the License is distributed on an "AS IS" BASIS,
16+
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
/// See the License for the specific language governing permissions and
18+
/// limitations under the License.
19+
/// </copyright>
20+
121
using UnityEngine;
222
using System.Collections;
323

OSVR-Unity/Assets/OSVRUnity/Sample/scripts/HandleButtonPress.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/// OSVR-Unity Connection
2+
///
3+
/// http://sensics.com/osvr
4+
///
5+
/// <copyright>
6+
/// Copyright 2014 Sensics, Inc.
7+
///
8+
/// Licensed under the Apache License, Version 2.0 (the "License");
9+
/// you may not use this file except in compliance with the License.
10+
/// You may obtain a copy of the License at
11+
///
12+
/// http://www.apache.org/licenses/LICENSE-2.0
13+
///
14+
/// Unless required by applicable law or agreed to in writing, software
15+
/// distributed under the License is distributed on an "AS IS" BASIS,
16+
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
/// See the License for the specific language governing permissions and
18+
/// limitations under the License.
19+
/// </copyright>
20+
121
using UnityEngine;
222
using System.Collections;
323

OSVR-Unity/Assets/OSVRUnity/src/ClientKit.cs

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
/* OSVR-Unity Connection
2-
*
3-
* <http://sensics.com/osvr>
4-
* Copyright 2014 Sensics, Inc.
5-
* Licensed under the Apache License, Version 2.0 (the "License");
6-
* you may not use this file except in compliance with the License.
7-
* You may obtain a copy of the License at
8-
*
9-
* http://www.apache.org/licenses/LICENSE-2.0
10-
*
11-
* Unless required by applicable law or agreed to in writing, software
12-
* distributed under the License is distributed on an "AS IS" BASIS,
13-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
* See the License for the specific language governing permissions and
15-
* limitations under the License.
16-
*/
1+
/// OSVR-Unity Connection
2+
///
3+
/// http://sensics.com/osvr
4+
///
5+
/// <copyright>
6+
/// Copyright 2014 Sensics, Inc.
7+
///
8+
/// Licensed under the Apache License, Version 2.0 (the "License");
9+
/// you may not use this file except in compliance with the License.
10+
/// You may obtain a copy of the License at
11+
///
12+
/// http://www.apache.org/licenses/LICENSE-2.0
13+
///
14+
/// Unless required by applicable law or agreed to in writing, software
15+
/// distributed under the License is distributed on an "AS IS" BASIS,
16+
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
/// See the License for the specific language governing permissions and
18+
/// limitations under the License.
19+
/// </copyright>
1720

1821
using UnityEngine;
1922

OSVR-Unity/Assets/OSVRUnity/src/DLLSearchPathFixer.cs

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
/* OSVR-Unity Connection
2-
*
3-
* <http://sensics.com/osvr>
4-
* Copyright 2014 Sensics, Inc.
5-
* Licensed under the Apache License, Version 2.0 (the "License");
6-
* you may not use this file except in compliance with the License.
7-
* You may obtain a copy of the License at
8-
*
9-
* http://www.apache.org/licenses/LICENSE-2.0
10-
*
11-
* Unless required by applicable law or agreed to in writing, software
12-
* distributed under the License is distributed on an "AS IS" BASIS,
13-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
* See the License for the specific language governing permissions and
15-
* limitations under the License.
16-
*/
1+
/// OSVR-Unity Connection
2+
///
3+
/// <copyright>
4+
/// Copyright 2014 Sensics, Inc.
5+
///
6+
/// Licensed under the Apache License, Version 2.0 (the "License");
7+
/// you may not use this file except in compliance with the License.
8+
/// You may obtain a copy of the License at
9+
///
10+
/// http://www.apache.org/licenses/LICENSE-2.0
11+
///
12+
/// Unless required by applicable law or agreed to in writing, software
13+
/// distributed under the License is distributed on an "AS IS" BASIS,
14+
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
/// See the License for the specific language governing permissions and
16+
/// limitations under the License.
17+
/// </copyright>
1718

1819
using System;
1920
using System.IO;
@@ -27,7 +28,7 @@ public class DLLSearchPathFixer
2728
{
2829
/// <summary>
2930
/// Call in a static constructor of an object depending on native code.
30-
///
31+
///
3132
/// It is required if that native DLL being accessed depends on other native DLLs alongside it.
3233
/// </summary>
3334
public static void fix()

OSVR-Unity/Assets/OSVRUnity/src/DeviceDescriptor.cs

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
/* OSVR-Unity Connection
2-
*
3-
* <http://sensics.com/osvr>
4-
* Copyright 2014 Sensics, Inc.
5-
* Licensed under the Apache License, Version 2.0 (the "License");
6-
* you may not use this file except in compliance with the License.
7-
* You may obtain a copy of the License at
8-
*
9-
* http://www.apache.org/licenses/LICENSE-2.0
10-
*
11-
* Unless required by applicable law or agreed to in writing, software
12-
* distributed under the License is distributed on an "AS IS" BASIS,
13-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
* See the License for the specific language governing permissions and
15-
* limitations under the License.
16-
*/
1+
/// OSVR-Unity Connection
2+
///
3+
/// http://sensics.com/osvr
4+
///
5+
/// <copyright>
6+
/// Copyright 2014 Sensics, Inc.
7+
///
8+
/// Licensed under the Apache License, Version 2.0 (the "License");
9+
/// you may not use this file except in compliance with the License.
10+
/// You may obtain a copy of the License at
11+
///
12+
/// http://www.apache.org/licenses/LICENSE-2.0
13+
///
14+
/// Unless required by applicable law or agreed to in writing, software
15+
/// distributed under the License is distributed on an "AS IS" BASIS,
16+
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
/// See the License for the specific language governing permissions and
18+
/// limitations under the License.
19+
/// </copyright>
1720

1821
using UnityEngine;
1922
using System.Collections;
@@ -144,6 +147,6 @@ public DeviceDescriptor(float monocularHorizontal, float monocularVertical, floa
144147
this._rightRoll = rightRoll;
145148
this._centerProjX = centerProjX;
146149
this._centerProjY = centerProjY;
147-
this._rotate180 = rotate180;
150+
this._rotate180 = rotate180;
148151
}
149152
}

0 commit comments

Comments
 (0)