void Awake()
        {
            exceptionsLogger = GameObject.FindObjectOfType <ExceptionsLogger>();
            NuitrackInitState state = NuitrackManager.Instance.InitState;

            if (state != NuitrackInitState.INIT_OK && Application.platform == RuntimePlatform.Android)
            {
                string error_message = "Nuitrack native libraries initialization error: " + Enum.GetName(typeof(NuitrackInitState), state);
                exceptionsLogger.AddEntry(NuitrackErrorSolver.CheckError(error_message));
            }
        }
Esempio n. 2
0
 void Start()
 {
     exceptionsLogger = FindObjectOfType <ExceptionsLogger>();
 }