예제 #1
0
        // Use this for initialization
        void Start()
        {
#if UNITY_EDITOR
            return;
#else
            switch (IntPtr.Size)
            {
            case 4:
                if (warnOn32BitBuild)
                {
                    ToastCenter.ShowToast("Field_Warning", "Action_x86Build", "MixCast is built for 32 bit (x86) platform but 64 bit (x64) is required. This build of MixCast may not work correctly", 10f);
                    Debug.Log("MixCast is built for 32 bit (x86) platform but 64 bit (x64) is required. This build of MixCast may not work correctly");
                }
                break;

            case 8:
                //Debug.Log("MixCast is built for 64bit (x64) platform");
                break;

            default:
                Debug.Log("Hit default case in BuiltTargetWarnings; IntPtr.Size is returning neither 8 (for x64) or 4 (for x86)");
                break;
            }
#endif
        }
예제 #2
0
 protected virtual bool HandleStarted(string msg, float duration = 1.5f)
 {
     if (string.IsNullOrEmpty(ResultStartedMsg))
     {
         return(false);
     }
     ToastCenter.ShowToast(ResultStartedTitle, ResultStartedMsg, msg, duration);
     return(true);
 }