Пример #1
0
 /// <summary>
 /// Set matrixCodeType parameter at runtime. [public use]
 /// </summary>
 /// <param name="o">New parameter</param>
 public void SetMatrixCodeType(MatrixCodeType o)
 {
     if (HasNativeHandle())
     {
         ARUWP.aruwpSetMatrixCodeType((int)o);
         matrixCodeType = (MatrixCodeType)ARUWP.aruwpGetMatrixCodeType();
         if (matrixCodeType != o)
         {
             Debug.Log(TAG + ": Unable to set matrix code type to " + o);
         }
     }
     else
     {
         Debug.Log(TAG + ": SetMatrixCodeType() unsupported status");
     }
 }
 public void setMatrixCodeType(MatrixCodeType o)
 {
     if (state == State.DETECTION_RUNNING)
     {
         ARUWP.aruwpSetMatrixCodeType((int)o);
         matrixCodeType = (MatrixCodeType)ARUWP.aruwpGetMatrixCodeType();
         if (matrixCodeType != o)
         {
             Debug.Log(TAG + ": Unable to set matrix code type to " + o);
         }
     }
     else
     {
         matrixCodeType = o;
     }
 }