public void Start() { IRWrapper.InitWrapper(); if (IRWrapper.APIReady) { } }
public void FixedUpdate() { //due to dll order incositency had to move initialization into FixedUpdate if (initPending) { //if the scene was loaded on non-IR Vessel and then IR vessel became focused we might need to re-init the API IRWrapper.InitWrapper(); UnityEngine.Debug.Log("KOS-IR: FixedUpdate reinit: " + IRWrapper.APIReady); initPending = false; } }
public void FixedUpdate() { //due to dll order incositency had to move initialization into FixedUpdate if (initPending) { //if the scene was loaded on non-IR Vessel and then IR vessel became focused we might need to re-init the API IRWrapper.InitWrapper(); Safe.Utilities.SafeHouse.Logger.SuperVerbose("KOS-IR: FixedUpdate reinit: " + IRWrapper.APIReady); initPending = false; } }