Skip to content

Commit b80966b

Browse files
committed
Movied DLLSearchPathFixer.fix() to Awake().
Removed constructor.
1 parent fb4a73d commit b80966b

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,9 @@ private void EnsureStarted()
7575
}
7676
}
7777

78-
/// <summary>
79-
/// Static constructor that enhances the DLL search path to ensure dependent native dlls are found.
80-
/// </summary>
81-
static ClientKit()
82-
{
83-
DLLSearchPathFixer.fix();
84-
}
85-
8678
void Awake()
8779
{
80+
DLLSearchPathFixer.fix();
8881
DontDestroyOnLoad(gameObject);
8982
}
9083
void Start()
@@ -102,7 +95,6 @@ void OnEnable()
10295
void FixedUpdate()
10396
{
10497
EnsureStarted();
105-
//Debug.Log("ClientKit FixedUpdate: frame # " + Time.frameCount + " " + Time.time);
10698
contextObject.update();
10799
}
108100

0 commit comments

Comments
 (0)