コード例 #1
0
 public void SignIn_Doesnt_Save_Token_In_Scene()
 {
     player.SignIn("xxxxxxLOLxxxxxx");
     Assert.AreEqual(player.vimeoToken, null);
     Assert.AreEqual(player.GetVimeoToken(), "xxxxxxLOLxxxxxx");
     Assert.AreEqual(player.vimeoSignIn, true);
 }
コード例 #2
0
        public void DrawVimeoConfig(VimeoPlayer player)
        {
            var so = serializedObject;

            if (Authenticated(player.GetVimeoToken()) && player.vimeoSignIn)
            {
                EditorGUILayout.PropertyField(so.FindProperty("videoScreen"));
                EditorGUILayout.PropertyField(so.FindProperty("audioSource"));
                EditorGUILayout.PropertyField(so.FindProperty("vimeoVideoId"), new GUIContent("Vimeo Video URL"));
                player.videoQualityIndex = EditorGUILayout.Popup("Video Quality", player.videoQualityIndex, player.videoQualities);

                EditorGUILayout.Space();
            }

            DrawVimeoAuth(player);
            so.ApplyModifiedProperties();
        }
コード例 #3
0
 public void SignIn_Works_In_Editor()
 {
     UnityEngine.TestTools.LogAssert.NoUnexpectedReceived();
     player.SignIn("xxx");
     Assert.AreEqual(player.GetVimeoToken(), "xxx");
 }