966 lines
46 KiB
C#
966 lines
46 KiB
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.Video;
|
|
|
|
namespace RecRoom.Core.Cinematics
|
|
{
|
|
// Token: 0x02000B44 RID: 2884
|
|
public class CinematicVideoPlayer : CinematicBehaviour
|
|
{
|
|
// Token: 0x06015CDE RID: 89310 RVA: 0x0060A628 File Offset: 0x00608828
|
|
public void JKFOJFHIHEM()
|
|
{
|
|
this.Stop();
|
|
}
|
|
|
|
// Token: 0x06015CDF RID: 89311 RVA: 0x0060A630 File Offset: 0x00608830
|
|
public void JOAILJBCIPI(string CJFIOPPOPJO)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
this.videoPlayer.url = string.Format("Lag ", Application.streamingAssetsPath, CJFIOPPOPJO);
|
|
this.videoPlayer.Play();
|
|
Debug.Log(". " + CJFIOPPOPJO);
|
|
}
|
|
|
|
// Token: 0x06015CE0 RID: 89312 RVA: 0x0060A680 File Offset: 0x00608880
|
|
protected virtual void LOBIFNMKFEE()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Play();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Play();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015CE1 RID: 89313 RVA: 0x0060A6BC File Offset: 0x006088BC
|
|
protected virtual void EGBNIEHPPGG()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Play();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Play();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015CE2 RID: 89314 RVA: 0x0060A6F8 File Offset: 0x006088F8
|
|
public bool AFLLHIEFFOG()
|
|
{
|
|
return this.videoPlayer.isPlaying;
|
|
}
|
|
|
|
// Token: 0x06015CE3 RID: 89315 RVA: 0x0060A708 File Offset: 0x00608908
|
|
public void OAEBECCDBPO()
|
|
{
|
|
this.Stop();
|
|
}
|
|
|
|
// Token: 0x06015CE4 RID: 89316 RVA: 0x0060A710 File Offset: 0x00608910
|
|
protected virtual void JMGDMALKCLK()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Play();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Play();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015CE5 RID: 89317 RVA: 0x0060A74C File Offset: 0x0060894C
|
|
protected virtual void CAJDOOAKLOA()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Play();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Play();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015CE6 RID: 89318 RVA: 0x0060A788 File Offset: 0x00608988
|
|
public void PlayVideo()
|
|
{
|
|
this.Play();
|
|
}
|
|
|
|
// Token: 0x06015CE7 RID: 89319 RVA: 0x0060A790 File Offset: 0x00608990
|
|
protected virtual void BEJPIHEKCML()
|
|
{
|
|
base.Awake();
|
|
if (this.videoPlayer.clip == null && !string.IsNullOrEmpty(this.streamingAssetsMoviePath))
|
|
{
|
|
this.videoPlayer.url = string.Format("Version", Application.streamingAssetsPath, this.streamingAssetsMoviePath);
|
|
}
|
|
if (this.videoPlayer.audioOutputMode == VideoAudioOutputMode.AudioSource && this.audioSource != null)
|
|
{
|
|
this.videoPlayer.EnableAudioTrack(1, false);
|
|
this.videoPlayer.SetTargetAudioSource(1, this.audioSource);
|
|
this.videoPlayer.controlledAudioTrackCount = 1;
|
|
}
|
|
this.videoPlayer.Prepare();
|
|
}
|
|
|
|
// Token: 0x06015CE8 RID: 89320 RVA: 0x0060A844 File Offset: 0x00608A44
|
|
public void OIKBNPIGEIJ()
|
|
{
|
|
this.Stop();
|
|
}
|
|
|
|
// Token: 0x06015CE9 RID: 89321 RVA: 0x0060A84C File Offset: 0x00608A4C
|
|
protected virtual void IPIMOKALLNE()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Stop();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015CEA RID: 89322 RVA: 0x0060A888 File Offset: 0x00608A88
|
|
protected virtual void DPGKNHDANKN()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Stop();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015CEB RID: 89323 RVA: 0x0060A8C4 File Offset: 0x00608AC4
|
|
protected virtual void DHMODMENLCE()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Play();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Play();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015CEC RID: 89324 RVA: 0x0060A900 File Offset: 0x00608B00
|
|
protected virtual void JFCPFOBGEDK()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Play();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Play();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015CED RID: 89325 RVA: 0x0060A93C File Offset: 0x00608B3C
|
|
public void ABFDKFKCKOF(string CJFIOPPOPJO)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
this.videoPlayer.url = string.Format("bS5QZXJzaXN0ZW5jZVZpZXdEYXRhEjIKDmxhc3Rfc2F2ZV90aW1lGAMgASgL", Application.streamingAssetsPath, CJFIOPPOPJO);
|
|
this.videoPlayer.Play();
|
|
Debug.Log("). Your graphics device: " + CJFIOPPOPJO);
|
|
}
|
|
|
|
// Token: 0x06015CEE RID: 89326 RVA: 0x0060A98C File Offset: 0x00608B8C
|
|
protected virtual void GPCBKBNAGHN()
|
|
{
|
|
base.Awake();
|
|
if (this.videoPlayer.clip == null && !string.IsNullOrEmpty(this.streamingAssetsMoviePath))
|
|
{
|
|
this.videoPlayer.url = string.Format("{0}:{1}:{2}:{3}:{4}:{5}", Application.streamingAssetsPath, this.streamingAssetsMoviePath);
|
|
}
|
|
if (this.videoPlayer.audioOutputMode == VideoAudioOutputMode.None && this.audioSource != null)
|
|
{
|
|
this.videoPlayer.EnableAudioTrack(0, false);
|
|
this.videoPlayer.SetTargetAudioSource(1, this.audioSource);
|
|
this.videoPlayer.controlledAudioTrackCount = 0;
|
|
}
|
|
this.videoPlayer.Prepare();
|
|
}
|
|
|
|
// Token: 0x06015CEF RID: 89327 RVA: 0x0060AA40 File Offset: 0x00608C40
|
|
public void DELDNAIEFIF(string CJFIOPPOPJO)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
this.videoPlayer.url = string.Format("turn", Application.streamingAssetsPath, CJFIOPPOPJO);
|
|
this.videoPlayer.Play();
|
|
Debug.Log("Blocked" + CJFIOPPOPJO);
|
|
}
|
|
|
|
// Token: 0x06015CF0 RID: 89328 RVA: 0x0060AA90 File Offset: 0x00608C90
|
|
protected virtual void NAPGKLNBMHN()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Play();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Play();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015CF1 RID: 89329 RVA: 0x0060AACC File Offset: 0x00608CCC
|
|
public void EDFGPHNOFHJ()
|
|
{
|
|
this.Stop();
|
|
}
|
|
|
|
// Token: 0x06015CF2 RID: 89330 RVA: 0x0060AAD4 File Offset: 0x00608CD4
|
|
protected virtual void ENJJMKFPOJA()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Stop();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015CF3 RID: 89331 RVA: 0x0060AB10 File Offset: 0x00608D10
|
|
public void KCHAHGGKEEE()
|
|
{
|
|
this.Play();
|
|
}
|
|
|
|
// Token: 0x06015CF4 RID: 89332 RVA: 0x0060AB18 File Offset: 0x00608D18
|
|
protected virtual void JBEKGCFAPMN()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Play();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Play();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015CF5 RID: 89333 RVA: 0x0060AB54 File Offset: 0x00608D54
|
|
protected virtual void KMMDOFELHPL()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Play();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Play();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015CF6 RID: 89334 RVA: 0x0060AB90 File Offset: 0x00608D90
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
if (this.videoPlayer.clip == null && !string.IsNullOrEmpty(this.streamingAssetsMoviePath))
|
|
{
|
|
this.videoPlayer.url = string.Format("{0}/{1}", Application.streamingAssetsPath, this.streamingAssetsMoviePath);
|
|
}
|
|
if (this.videoPlayer.audioOutputMode == VideoAudioOutputMode.AudioSource && this.audioSource != null)
|
|
{
|
|
this.videoPlayer.EnableAudioTrack(0, true);
|
|
this.videoPlayer.SetTargetAudioSource(0, this.audioSource);
|
|
this.videoPlayer.controlledAudioTrackCount = 1;
|
|
}
|
|
this.videoPlayer.Prepare();
|
|
}
|
|
|
|
// Token: 0x06015CF7 RID: 89335 RVA: 0x0060AC44 File Offset: 0x00608E44
|
|
public bool EBCMJHEKECI()
|
|
{
|
|
return this.videoPlayer.isPlaying;
|
|
}
|
|
|
|
// Token: 0x06015CF8 RID: 89336 RVA: 0x0060AC54 File Offset: 0x00608E54
|
|
protected virtual void OKGGDGJIPAM()
|
|
{
|
|
base.Awake();
|
|
if (this.videoPlayer.clip == null && !string.IsNullOrEmpty(this.streamingAssetsMoviePath))
|
|
{
|
|
this.videoPlayer.url = string.Format("EET", Application.streamingAssetsPath, this.streamingAssetsMoviePath);
|
|
}
|
|
if (this.videoPlayer.audioOutputMode == VideoAudioOutputMode.AudioSource && this.audioSource != null)
|
|
{
|
|
this.videoPlayer.EnableAudioTrack(1, true);
|
|
this.videoPlayer.SetTargetAudioSource(0, this.audioSource);
|
|
this.videoPlayer.controlledAudioTrackCount = 0;
|
|
}
|
|
this.videoPlayer.Prepare();
|
|
}
|
|
|
|
// Token: 0x06015CF9 RID: 89337 RVA: 0x0060AD08 File Offset: 0x00608F08
|
|
protected virtual void OPDFACEDKDJ()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Stop();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015CFA RID: 89338 RVA: 0x0060AD44 File Offset: 0x00608F44
|
|
protected virtual void KCCIILCOJMP()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Play();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Play();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015CFB RID: 89339 RVA: 0x0060AD80 File Offset: 0x00608F80
|
|
public void FGJDGILGGCL(string CJFIOPPOPJO)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
this.videoPlayer.url = string.Format("Spin", Application.streamingAssetsPath, CJFIOPPOPJO);
|
|
this.videoPlayer.Play();
|
|
Debug.Log("ModificationGuid" + CJFIOPPOPJO);
|
|
}
|
|
|
|
// Token: 0x06015CFC RID: 89340 RVA: 0x0060ADD0 File Offset: 0x00608FD0
|
|
protected virtual void KMEHAACNJAG()
|
|
{
|
|
base.Awake();
|
|
if (this.videoPlayer.clip == null && !string.IsNullOrEmpty(this.streamingAssetsMoviePath))
|
|
{
|
|
this.videoPlayer.url = string.Format("right", Application.streamingAssetsPath, this.streamingAssetsMoviePath);
|
|
}
|
|
if (this.videoPlayer.audioOutputMode == VideoAudioOutputMode.AudioSource && this.audioSource != null)
|
|
{
|
|
this.videoPlayer.EnableAudioTrack(0, false);
|
|
this.videoPlayer.SetTargetAudioSource(0, this.audioSource);
|
|
this.videoPlayer.controlledAudioTrackCount = 1;
|
|
}
|
|
this.videoPlayer.Prepare();
|
|
}
|
|
|
|
// Token: 0x06015CFD RID: 89341 RVA: 0x0060AE84 File Offset: 0x00609084
|
|
protected override void Play()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Play();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Play();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015CFE RID: 89342 RVA: 0x0060AEC0 File Offset: 0x006090C0
|
|
public void JNGFIMHBMGK(string CJFIOPPOPJO)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
this.videoPlayer.url = string.Format("<pre style=\"font-family:Consolas;font-size:13;color:black;background:silver;\"><span style=\"color:blue;\">using</span> System;\r\n<span style=\"color:blue;\">using</span> System.Collections.Generic;\r\n\r\n<span style=\"color:blue;\">using</span> UnityEngine;\r\n<span style=\"color:blue;\">using</span> BestHTTP;\r\n<span style=\"color:blue;\">using</span> BestHTTP.SocketIO;\r\n<span style=\"color:blue;\">using</span> BestHTTP.JSON;\r\n<span style=\"color:blue;\">using</span> BestHTTP.SocketIO.Events;\r\n\r\n<span style=\"color:blue;\">public</span> <span style=\"color:blue;\">sealed</span> <span style=\"color:blue;\">class</span> <span style=\"color:#2b91af;\">SocketIOChatSample</span> : <span style=\"color:#2b91af;\">MonoBehaviour</span>\r\n{\r\n <span style=\"color:blue;\">private</span> <span style=\"color:blue;\">readonly</span> <span style=\"color:#2b91af;\">TimeSpan</span> TYPING_TIMER_LENGTH = <span style=\"color:#2b91af;\">TimeSpan</span>.FromMilliseconds(700);\r\n\r\n <span style=\"color:blue;\">private</span> <span style=\"color:blue;\">enum</span> <span style=\"color:#2b91af;\">ChatStates</span>\r\n {\r\n Login,\r\n Chat\r\n }\r\n\r\n<span style=\"color:blue;\"> #region</span> Fields\r\n\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"><summary></span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> The Socket.IO manager instance.</span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"></summary></span>\r\n <span style=\"color:blue;\">private</span> <span style=\"color:#2b91af;\">SocketManager</span> Manager;\r\n\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"><summary></span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> Current state of the chat demo.</span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"></summary></span>\r\n <span style=\"color:blue;\">private</span> <span style=\"color:#2b91af;\">ChatStates</span> State;\r\n\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"><summary></span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> The selected nickname</span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"></summary></span>\r\n <span style=\"color:blue;\">private</span> <span style=\"color:blue;\">string</span> userName = <span style=\"color:blue;\">string</span>.Empty;\r\n\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"><summary></span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> Currently typing message</span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"></summary></span>\r\n <span style=\"color:blue;\">private</span> <span style=\"color:blue;\">string</span> message = <span style=\"color:blue;\">string</span>.Empty;\r\n\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"><summary></span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> Sent and received messages.</span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"></summary></span>\r\n <span style=\"color:blue;\">private</span> <span style=\"color:blue;\">string</span> chatLog = <span style=\"color:blue;\">string</span>.Empty;\r\n\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"><summary></span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> Position of the scroller</span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"></summary></span>\r\n <span style=\"color:blue;\">private</span> <span style=\"color:#2b91af;\">Vector2</span> scrollPos;\r\n\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"><summary></span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> True if the user is currently typing</span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"></summary></span>\r\n <span style=\"color:blue;\">private</span> <span style=\"color:blue;\">bool</span> typing;\r\n\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"><summary></span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> When the message changed.</span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"></summary></span>\r\n <span style=\"color:blue;\">private</span> <span style=\"color:#2b91af;\">DateTime</span> lastTypingTime = <span style=\"color:#2b91af;\">DateTime</span>.MinValue;\r\n\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"><summary></span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> Users that typing.</span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"></summary></span>\r\n <span style=\"color:blue;\">private</span> <span style=\"color:#2b91af;\">List</span><<span style=\"color:blue;\">string</span>> typingUsers = <span style=\"color:blue;\">new</span> <span style=\"color:#2b91af;\">List</span><<span style=\"color:blue;\">string</span>>();\r\n\r\n<span style=\"color:blue;\"> #endregion</span>\r\n\r\n<span style=\"color:blue;\"> #region</span> Unity Events\r\n \r\n <span style=\"color:blue;\">void</span> Start()\r\n {\r\n <span style=\"color:green;\">// The current state is Login</span>\r\n State = <span style=\"color:#2b91af;\">ChatStates</span>.Login;\r\n\r\n <span style=\"color:green;\">// Change an option to show how it should be done</span>\r\n <span style=\"color:#2b91af;\">SocketOptions</span> options = <span style=\"color:blue;\">new</span> <span style=\"color:#2b91af;\">SocketOptions</span>();\r\n options.AutoConnect = <span style=\"color:blue;\">false</span>;\r\n \r\n <span style=\"color:green;\">// Create the Socket.IO manager</span>\r\n Manager = <span style=\"color:blue;\">new</span> <span style=\"color:#2b91af;\">SocketManager</span>(<span style=\"color:blue;\">new</span> <span style=\"color:#2b91af;\">Uri</span>(<span style=\"color:#a31515;\">"http://chat.socket.io/socket.io/"</span>), options);\r\n\r\n <span style=\"color:green;\">// Set up custom chat events</span>\r\n Manager.Socket.On(<span style=\"color:#a31515;\">"login"</span>, OnLogin);\r\n Manager.Socket.On(<span style=\"color:#a31515;\">"new message"</span>, OnNewMessage);\r\n Manager.Socket.On(<span style=\"color:#a31515;\">"user joined"</span>, OnUserJoined);\r\n Manager.Socket.On(<span style=\"color:#a31515;\">"user left"</span>, OnUserLeft);\r\n Manager.Socket.On(<span style=\"color:#a31515;\">"typing"</span>, OnTyping);\r\n Manager.Socket.On(<span style=\"color:#a31515;\">"stop typing"</span>, OnStopTyping);\r\n\r\n <span style=\"color:green;\">// The argument will be an Error object.</span>\r\n Manager.Socket.On(<span style=\"color:#2b91af;\">SocketIOEventTypes</span>.Error, (socket, packet, args) => <span style=\"color:#2b91af;\">Debug</span>.LogError(<span style=\"color:blue;\">string</span>.Format(<span style=\"color:#a31515;\">"Error: {0}"</span>, args[0].ToString())));\r\n\r\n <span style=\"color:green;\">// We set SocketOptions' AutoConnect to false, so we have to call it manually.</span>\r\n Manager.Open();\r\n }\r\n\r\n <span style=\"color:blue;\">void</span> OnDestroy()\r\n {\r\n <span style=\"color:green;\">// Leaving this sample, close the socket</span>\r\n Manager.Close();\r\n }\r\n\r\n <span style=\"color:blue;\">void</span> Update()\r\n {\r\n <span style=\"color:green;\">// Go back to the demo selector</span>\r\n <span style=\"color:blue;\">if</span> (<span style=\"color:#2b91af;\">Input</span>.GetKeyDown(<span style=\"color:#2b91af;\">KeyCode</span>.Escape))\r\n <span style=\"color:#2b91af;\">SampleSelector</span>.SelectedSample.DestroyUnityObject();\r\n\r\n <span style=\"color:green;\">// Stop typing if some time passed without typing</span>\r\n <span style=\"color:blue;\">if</span> (typing)\r\n {\r\n <span style=\"color:blue;\">var</span> typingTimer = <span style=\"color:#2b91af;\">DateTime</span>.UtcNow;\r\n <span style=\"color:blue;\">var</span> timeDiff = typingTimer - lastTypingTime;\r\n <span style=\"color:blue;\">if</span> (timeDiff >= TYPING_TIMER_LENGTH)\r\n {\r\n Manager.Socket.Emit(<span style=\"color:#a31515;\">"stop typing"</span>);\r\n typing = <span style=\"color:blue;\">false</span>;\r\n }\r\n }\r\n }\r\n\r\n <span style=\"color:blue;\">void</span> OnGUI()\r\n {\r\n <span style=\"color:blue;\">switch</span>(State)\r\n {\r\n <span style=\"color:blue;\">case</span> <span style=\"color:#2b91af;\">ChatStates</span>.Login: DrawLoginScreen(); <span style=\"color:blue;\">break</span>;\r\n <span style=\"color:blue;\">case</span> <span style=\"color:#2b91af;\">ChatStates</span>.Chat: DrawChatScreen(); <span style=\"color:blue;\">break</span>;\r\n }\r\n }\r\n\r\n<span style=\"color:blue;\"> #endregion</span>\r\n\r\n<span style=\"color:blue;\"> #region</span> Chat Logic\r\n\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"><summary></span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> Called from an OnGUI event to draw the Login Screen.</span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"></summary></span>\r\n <span style=\"color:blue;\">void</span> DrawLoginScreen()\r\n {\r\n <span style=\"color:#2b91af;\">GUIHelper</span>.DrawArea(<span style=\"color:#2b91af;\">GUIHelper</span>.ClientArea, <span style=\"color:blue;\">true</span>, () =>\r\n {\r\n <span style=\"color:#2b91af;\">GUILayout</span>.BeginVertical();\r\n <span style=\"color:#2b91af;\">GUILayout</span>.FlexibleSpace();\r\n\r\n <span style=\"color:#2b91af;\">GUIHelper</span>.DrawCenteredText(<span style=\"color:#a31515;\">"What's your nickname?"</span>);\r\n userName = <span style=\"color:#2b91af;\">GUILayout</span>.TextField(userName);\r\n\r\n <span style=\"color:blue;\">if</span> (<span style=\"color:#2b91af;\">GUILayout</span>.Button(<span style=\"color:#a31515;\">"Join"</span>))\r\n SetUserName();\r\n\r\n <span style=\"color:#2b91af;\">GUILayout</span>.FlexibleSpace();\r\n <span style=\"color:#2b91af;\">GUILayout</span>.EndVertical();\r\n });\r\n }\r\n\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"><summary></span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> Called from an OnGUI event to draw the Chat Screen.</span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"></summary></span>\r\n <span style=\"color:blue;\">void</span> DrawChatScreen()\r\n {\r\n <span style=\"color:#2b91af;\">GUIHelper</span>.DrawArea(<span style=\"color:#2b91af;\">GUIHelper</span>.ClientArea, <span style=\"color:blue;\">true</span>, () =>\r\n {\r\n <span style=\"color:#2b91af;\">GUILayout</span>.BeginVertical();\r\n scrollPos = <span style=\"color:#2b91af;\">GUILayout</span>.BeginScrollView(scrollPos);\r\n <span style=\"color:#2b91af;\">GUILayout</span>.Label(chatLog, <span style=\"color:#2b91af;\">GUILayout</span>.ExpandWidth(<span style=\"color:blue;\">true</span>), <span style=\"color:#2b91af;\">GUILayout</span>.ExpandHeight(<span style=\"color:blue;\">true</span>));\r\n <span style=\"color:#2b91af;\">GUILayout</span>.EndScrollView();\r\n\r\n <span style=\"color:blue;\">string</span> typing = <span style=\"color:blue;\">string</span>.Empty;\r\n\r\n <span style=\"color:blue;\">if</span> (typingUsers.Count > 0)\r\n {\r\n typing += <span style=\"color:blue;\">string</span>.Format(<span style=\"color:#a31515;\">"{0}"</span>, typingUsers[0]);\r\n\r\n <span style=\"color:blue;\">for</span> (<span style=\"color:blue;\">int</span> i = 1; i < typingUsers.Count; ++i)\r\n typing += <span style=\"color:blue;\">string</span>.Format(<span style=\"color:#a31515;\">", {0}"</span>, typingUsers[i]);\r\n\r\n &nbs[...string is too long...]", Application.streamingAssetsPath, CJFIOPPOPJO);
|
|
this.videoPlayer.Play();
|
|
Debug.Log("punch" + CJFIOPPOPJO);
|
|
}
|
|
|
|
// Token: 0x06015CFF RID: 89343 RVA: 0x0060AF10 File Offset: 0x00609110
|
|
public void DGMAKNNLCEH(string CJFIOPPOPJO)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
this.videoPlayer.url = string.Format("GameTimerManager has not been initialized.", Application.streamingAssetsPath, CJFIOPPOPJO);
|
|
this.videoPlayer.Play();
|
|
Debug.Log("Expresso Menu was initialized without a Root Flow." + CJFIOPPOPJO);
|
|
}
|
|
|
|
// Token: 0x06015D00 RID: 89344 RVA: 0x0060AF60 File Offset: 0x00609160
|
|
public void JHOBOJMNHDE()
|
|
{
|
|
this.Play();
|
|
}
|
|
|
|
// Token: 0x06015D01 RID: 89345 RVA: 0x0060AF68 File Offset: 0x00609168
|
|
public void CGPMJPJJCPP(string CJFIOPPOPJO)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
this.videoPlayer.url = string.Format(" not found when trying to remove on player leave", Application.streamingAssetsPath, CJFIOPPOPJO);
|
|
this.videoPlayer.Play();
|
|
Debug.Log("Room: '{0}' {1},{2} {4}/{3} players.\ncustomProps: {5}" + CJFIOPPOPJO);
|
|
}
|
|
|
|
// Token: 0x06015D02 RID: 89346 RVA: 0x0060AFB8 File Offset: 0x006091B8
|
|
public void ENIPEMOCCKD()
|
|
{
|
|
this.Stop();
|
|
}
|
|
|
|
// Token: 0x06015D03 RID: 89347 RVA: 0x0060AFC0 File Offset: 0x006091C0
|
|
protected virtual void NBOKPDLLKLO()
|
|
{
|
|
base.Awake();
|
|
if (this.videoPlayer.clip == null && !string.IsNullOrEmpty(this.streamingAssetsMoviePath))
|
|
{
|
|
this.videoPlayer.url = string.Format("{0}v2/listByPlatformId", Application.streamingAssetsPath, this.streamingAssetsMoviePath);
|
|
}
|
|
if (this.videoPlayer.audioOutputMode == VideoAudioOutputMode.AudioSource && this.audioSource != null)
|
|
{
|
|
this.videoPlayer.EnableAudioTrack(0, false);
|
|
this.videoPlayer.SetTargetAudioSource(1, this.audioSource);
|
|
this.videoPlayer.controlledAudioTrackCount = 0;
|
|
}
|
|
this.videoPlayer.Prepare();
|
|
}
|
|
|
|
// Token: 0x06015D04 RID: 89348 RVA: 0x0060B074 File Offset: 0x00609274
|
|
protected virtual void JKFGPGBMBKK()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Stop();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015D05 RID: 89349 RVA: 0x0060B0B0 File Offset: 0x006092B0
|
|
protected virtual void BPBLBIGCNMJ()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Stop();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015D06 RID: 89350 RVA: 0x0060B0EC File Offset: 0x006092EC
|
|
public void NDDOHFMFHLB()
|
|
{
|
|
this.Play();
|
|
}
|
|
|
|
// Token: 0x06015D07 RID: 89351 RVA: 0x0060B0F4 File Offset: 0x006092F4
|
|
protected virtual void DHAEEPCMCMI()
|
|
{
|
|
base.Awake();
|
|
if (this.videoPlayer.clip == null && !string.IsNullOrEmpty(this.streamingAssetsMoviePath))
|
|
{
|
|
this.videoPlayer.url = string.Format("YOU HIT", Application.streamingAssetsPath, this.streamingAssetsMoviePath);
|
|
}
|
|
if (this.videoPlayer.audioOutputMode == VideoAudioOutputMode.AudioSource && this.audioSource != null)
|
|
{
|
|
this.videoPlayer.EnableAudioTrack(1, true);
|
|
this.videoPlayer.SetTargetAudioSource(0, this.audioSource);
|
|
this.videoPlayer.controlledAudioTrackCount = 0;
|
|
}
|
|
this.videoPlayer.Prepare();
|
|
}
|
|
|
|
// Token: 0x06015D08 RID: 89352 RVA: 0x0060B1A8 File Offset: 0x006093A8
|
|
public void PMDECNFOOHB()
|
|
{
|
|
this.Play();
|
|
}
|
|
|
|
// Token: 0x06015D09 RID: 89353 RVA: 0x0060B1B0 File Offset: 0x006093B0
|
|
protected virtual void AHLMADACOLB()
|
|
{
|
|
base.Awake();
|
|
if (this.videoPlayer.clip == null && !string.IsNullOrEmpty(this.streamingAssetsMoviePath))
|
|
{
|
|
this.videoPlayer.url = string.Format("cl9kYXRhGBUgASgLMhUucmVjcm9vbS5Sb29tRG9vckRhdGFCE6oCEFJlY1Jv", Application.streamingAssetsPath, this.streamingAssetsMoviePath);
|
|
}
|
|
if (this.videoPlayer.audioOutputMode == VideoAudioOutputMode.None && this.audioSource != null)
|
|
{
|
|
this.videoPlayer.EnableAudioTrack(0, false);
|
|
this.videoPlayer.SetTargetAudioSource(0, this.audioSource);
|
|
this.videoPlayer.controlledAudioTrackCount = 0;
|
|
}
|
|
this.videoPlayer.Prepare();
|
|
}
|
|
|
|
// Token: 0x06015D0A RID: 89354 RVA: 0x0060B264 File Offset: 0x00609464
|
|
protected virtual void MIGPMGPOLON()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Stop();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015D0B RID: 89355 RVA: 0x0060B2A0 File Offset: 0x006094A0
|
|
public void KDDNLPELDMP(string CJFIOPPOPJO)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
this.videoPlayer.url = string.Format("spillway4", Application.streamingAssetsPath, CJFIOPPOPJO);
|
|
this.videoPlayer.Play();
|
|
Debug.Log("api/images/" + CJFIOPPOPJO);
|
|
}
|
|
|
|
// Token: 0x06015D0C RID: 89356 RVA: 0x0060B2F0 File Offset: 0x006094F0
|
|
public void NJJCOFLKNCG(string CJFIOPPOPJO)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
this.videoPlayer.url = string.Format("{0}{1}:{2}", Application.streamingAssetsPath, CJFIOPPOPJO);
|
|
this.videoPlayer.Play();
|
|
Debug.Log("<unknown>" + CJFIOPPOPJO);
|
|
}
|
|
|
|
// Token: 0x06015D0D RID: 89357 RVA: 0x0060B340 File Offset: 0x00609540
|
|
public bool ODFBKDJAMIN()
|
|
{
|
|
return this.videoPlayer.isPlaying;
|
|
}
|
|
|
|
// Token: 0x06015D0E RID: 89358 RVA: 0x0060B350 File Offset: 0x00609550
|
|
public bool INEONMNIIOJ()
|
|
{
|
|
return this.videoPlayer.isPlaying;
|
|
}
|
|
|
|
// Token: 0x06015D10 RID: 89360 RVA: 0x0060B380 File Offset: 0x00609580
|
|
protected override void Stop()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Stop();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015D11 RID: 89361 RVA: 0x0060B3BC File Offset: 0x006095BC
|
|
protected virtual void POMCHIPOPEA()
|
|
{
|
|
base.Awake();
|
|
if (this.videoPlayer.clip == null && !string.IsNullOrEmpty(this.streamingAssetsMoviePath))
|
|
{
|
|
this.videoPlayer.url = string.Format("relationship", Application.streamingAssetsPath, this.streamingAssetsMoviePath);
|
|
}
|
|
if (this.videoPlayer.audioOutputMode == VideoAudioOutputMode.AudioSource && this.audioSource != null)
|
|
{
|
|
this.videoPlayer.EnableAudioTrack(1, false);
|
|
this.videoPlayer.SetTargetAudioSource(1, this.audioSource);
|
|
this.videoPlayer.controlledAudioTrackCount = 0;
|
|
}
|
|
this.videoPlayer.Prepare();
|
|
}
|
|
|
|
// Token: 0x06015D12 RID: 89362 RVA: 0x0060B470 File Offset: 0x00609670
|
|
public void StopVideo()
|
|
{
|
|
this.Stop();
|
|
}
|
|
|
|
// Token: 0x06015D13 RID: 89363 RVA: 0x0060B478 File Offset: 0x00609678
|
|
public bool OCHANHBHAJK()
|
|
{
|
|
return this.videoPlayer.isPlaying;
|
|
}
|
|
|
|
// Token: 0x06015D14 RID: 89364 RVA: 0x0060B488 File Offset: 0x00609688
|
|
public bool EJEDHOCGFAM()
|
|
{
|
|
return this.videoPlayer.isPlaying;
|
|
}
|
|
|
|
// Token: 0x06015D15 RID: 89365 RVA: 0x0060B498 File Offset: 0x00609698
|
|
public bool KNCJLDAIIPN()
|
|
{
|
|
return this.videoPlayer.isPlaying;
|
|
}
|
|
|
|
// Token: 0x06015D16 RID: 89366 RVA: 0x0060B4A8 File Offset: 0x006096A8
|
|
protected virtual void POLFKFMICEF()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Stop();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015D17 RID: 89367 RVA: 0x0060B4E4 File Offset: 0x006096E4
|
|
public void DNECFDPKGIA()
|
|
{
|
|
this.Stop();
|
|
}
|
|
|
|
// Token: 0x06015D18 RID: 89368 RVA: 0x0060B4EC File Offset: 0x006096EC
|
|
public void DHNCHDMDLEP()
|
|
{
|
|
this.Stop();
|
|
}
|
|
|
|
// Token: 0x06015D19 RID: 89369 RVA: 0x0060B4F4 File Offset: 0x006096F4
|
|
protected virtual void ODDGGOBNHGF()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Stop();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015D1A RID: 89370 RVA: 0x0060B530 File Offset: 0x00609730
|
|
public bool NOHCNCAPFME()
|
|
{
|
|
return this.videoPlayer.isPlaying;
|
|
}
|
|
|
|
// Token: 0x06015D1B RID: 89371 RVA: 0x0060B540 File Offset: 0x00609740
|
|
public void NNKKGHCIOML()
|
|
{
|
|
this.Stop();
|
|
}
|
|
|
|
// Token: 0x06015D1C RID: 89372 RVA: 0x0060B548 File Offset: 0x00609748
|
|
public bool JKBOJMEJDFB()
|
|
{
|
|
return this.videoPlayer.isPlaying;
|
|
}
|
|
|
|
// Token: 0x06015D1D RID: 89373 RVA: 0x0060B558 File Offset: 0x00609758
|
|
protected virtual void ILLDPEDIKIE()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Play();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Play();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015D1E RID: 89374 RVA: 0x0060B594 File Offset: 0x00609794
|
|
public void IPDLKGFLBEO(string CJFIOPPOPJO)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
this.videoPlayer.url = string.Format("Failed to consume gift {0} : {1}", Application.streamingAssetsPath, CJFIOPPOPJO);
|
|
this.videoPlayer.Play();
|
|
Debug.Log(", opaque=\"" + CJFIOPPOPJO);
|
|
}
|
|
|
|
// Token: 0x06015D1F RID: 89375 RVA: 0x0060B5E4 File Offset: 0x006097E4
|
|
protected virtual void ONPGAJLLPNP()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Stop();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015D20 RID: 89376 RVA: 0x0060B620 File Offset: 0x00609820
|
|
public void OLPODIGPEBC()
|
|
{
|
|
this.Stop();
|
|
}
|
|
|
|
// Token: 0x06015D21 RID: 89377 RVA: 0x0060B628 File Offset: 0x00609828
|
|
public bool IKHFHBMLMHJ()
|
|
{
|
|
return this.videoPlayer.isPlaying;
|
|
}
|
|
|
|
// Token: 0x06015D22 RID: 89378 RVA: 0x0060B638 File Offset: 0x00609838
|
|
public void GEHIKAPKNDK()
|
|
{
|
|
this.Stop();
|
|
}
|
|
|
|
// Token: 0x06015D23 RID: 89379 RVA: 0x0060B640 File Offset: 0x00609840
|
|
public void GFCGKNFLHDG()
|
|
{
|
|
this.Stop();
|
|
}
|
|
|
|
// Token: 0x06015D24 RID: 89380 RVA: 0x0060B648 File Offset: 0x00609848
|
|
public bool DEJOPDOCHNP()
|
|
{
|
|
return this.videoPlayer.isPlaying;
|
|
}
|
|
|
|
// Token: 0x06015D25 RID: 89381 RVA: 0x0060B658 File Offset: 0x00609858
|
|
public void HOFHPPAJMJP()
|
|
{
|
|
this.Play();
|
|
}
|
|
|
|
// Token: 0x06015D26 RID: 89382 RVA: 0x0060B660 File Offset: 0x00609860
|
|
protected virtual void LGCNFLACIIH()
|
|
{
|
|
base.Awake();
|
|
if (this.videoPlayer.clip == null && !string.IsNullOrEmpty(this.streamingAssetsMoviePath))
|
|
{
|
|
this.videoPlayer.url = string.Format("Event Finished", Application.streamingAssetsPath, this.streamingAssetsMoviePath);
|
|
}
|
|
if (this.videoPlayer.audioOutputMode == VideoAudioOutputMode.AudioSource && this.audioSource != null)
|
|
{
|
|
this.videoPlayer.EnableAudioTrack(1, true);
|
|
this.videoPlayer.SetTargetAudioSource(1, this.audioSource);
|
|
this.videoPlayer.controlledAudioTrackCount = 0;
|
|
}
|
|
this.videoPlayer.Prepare();
|
|
}
|
|
|
|
// Token: 0x06015D27 RID: 89383 RVA: 0x0060B714 File Offset: 0x00609914
|
|
protected virtual void FIDMEJHMGJI()
|
|
{
|
|
base.Awake();
|
|
if (this.videoPlayer.clip == null && !string.IsNullOrEmpty(this.streamingAssetsMoviePath))
|
|
{
|
|
this.videoPlayer.url = string.Format(" (inactive)", Application.streamingAssetsPath, this.streamingAssetsMoviePath);
|
|
}
|
|
if (this.videoPlayer.audioOutputMode == VideoAudioOutputMode.None && this.audioSource != null)
|
|
{
|
|
this.videoPlayer.EnableAudioTrack(0, true);
|
|
this.videoPlayer.SetTargetAudioSource(0, this.audioSource);
|
|
this.videoPlayer.controlledAudioTrackCount = 0;
|
|
}
|
|
this.videoPlayer.Prepare();
|
|
}
|
|
|
|
// Token: 0x06015D28 RID: 89384 RVA: 0x0060B7C8 File Offset: 0x006099C8
|
|
protected virtual void EEBJCCMFPHI()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Stop();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015D29 RID: 89385 RVA: 0x0060B804 File Offset: 0x00609A04
|
|
public void IJLBPNIJANF()
|
|
{
|
|
this.Play();
|
|
}
|
|
|
|
// Token: 0x06015D2A RID: 89386 RVA: 0x0060B80C File Offset: 0x00609A0C
|
|
protected virtual void IGJJHOFOCLE()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Play();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Play();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015D2B RID: 89387 RVA: 0x0060B848 File Offset: 0x00609A48
|
|
public void PlayStreamingVideo(string CJFIOPPOPJO)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
this.videoPlayer.url = string.Format("{0}/{1}", Application.streamingAssetsPath, CJFIOPPOPJO);
|
|
this.videoPlayer.Play();
|
|
Debug.Log("Playing: " + CJFIOPPOPJO);
|
|
}
|
|
|
|
// Token: 0x06015D2C RID: 89388 RVA: 0x0060B898 File Offset: 0x00609A98
|
|
public void FGGFFKFFLJP()
|
|
{
|
|
this.Stop();
|
|
}
|
|
|
|
// Token: 0x06015D2D RID: 89389 RVA: 0x0060B8A0 File Offset: 0x00609AA0
|
|
public bool MOJJJCHGFCP()
|
|
{
|
|
return this.videoPlayer.isPlaying;
|
|
}
|
|
|
|
// Token: 0x06015D2E RID: 89390 RVA: 0x0060B8B0 File Offset: 0x00609AB0
|
|
public void LADHAGJHBDH()
|
|
{
|
|
this.Play();
|
|
}
|
|
|
|
// Token: 0x06015D2F RID: 89391 RVA: 0x0060B8B8 File Offset: 0x00609AB8
|
|
public bool MBCFEJBOEIB()
|
|
{
|
|
return this.videoPlayer.isPlaying;
|
|
}
|
|
|
|
// Token: 0x06015D30 RID: 89392 RVA: 0x0060B8C8 File Offset: 0x00609AC8
|
|
protected virtual void BOFMPPGNKAI()
|
|
{
|
|
base.Awake();
|
|
if (this.videoPlayer.clip == null && !string.IsNullOrEmpty(this.streamingAssetsMoviePath))
|
|
{
|
|
this.videoPlayer.url = string.Format("\n", Application.streamingAssetsPath, this.streamingAssetsMoviePath);
|
|
}
|
|
if (this.videoPlayer.audioOutputMode == VideoAudioOutputMode.None && this.audioSource != null)
|
|
{
|
|
this.videoPlayer.EnableAudioTrack(1, false);
|
|
this.videoPlayer.SetTargetAudioSource(1, this.audioSource);
|
|
this.videoPlayer.controlledAudioTrackCount = 1;
|
|
}
|
|
this.videoPlayer.Prepare();
|
|
}
|
|
|
|
// Token: 0x06015D31 RID: 89393 RVA: 0x0060B97C File Offset: 0x00609B7C
|
|
protected virtual void HCBOADLENIM()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Play();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Play();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015D32 RID: 89394 RVA: 0x0060B9B8 File Offset: 0x00609BB8
|
|
public void COKPPHDEDIL(string CJFIOPPOPJO)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
this.videoPlayer.url = string.Format("Sending ", Application.streamingAssetsPath, CJFIOPPOPJO);
|
|
this.videoPlayer.Play();
|
|
Debug.Log("Unable to connect to RecNet game session" + CJFIOPPOPJO);
|
|
}
|
|
|
|
// Token: 0x06015D33 RID: 89395 RVA: 0x0060BA08 File Offset: 0x00609C08
|
|
protected virtual void OLALCKFPLOL()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Stop();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015D34 RID: 89396 RVA: 0x0060BA44 File Offset: 0x00609C44
|
|
protected virtual void FLMOAJJPOIK()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Play();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Play();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015D35 RID: 89397 RVA: 0x0060BA80 File Offset: 0x00609C80
|
|
protected virtual void MBJHGLODPOM()
|
|
{
|
|
if (this.videoPlayer != null)
|
|
{
|
|
this.videoPlayer.Play();
|
|
}
|
|
if (this.audioSource != null)
|
|
{
|
|
this.audioSource.Play();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015D36 RID: 89398 RVA: 0x0060BABC File Offset: 0x00609CBC
|
|
public void EFHBIJPANEK(string CJFIOPPOPJO)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
this.videoPlayer.url = string.Format("ALIVE", Application.streamingAssetsPath, CJFIOPPOPJO);
|
|
this.videoPlayer.Play();
|
|
Debug.Log("]. Please verify you have this gameobject in a Resources folder." + CJFIOPPOPJO);
|
|
}
|
|
|
|
// Token: 0x06015D37 RID: 89399 RVA: 0x0060BB0C File Offset: 0x00609D0C
|
|
public bool ONEJMLIKBEF()
|
|
{
|
|
return this.videoPlayer.isPlaying;
|
|
}
|
|
|
|
// Token: 0x06015D38 RID: 89400 RVA: 0x0060BB1C File Offset: 0x00609D1C
|
|
public void BCCPCDELIIF(string CJFIOPPOPJO)
|
|
{
|
|
this.videoPlayer.Stop();
|
|
this.videoPlayer.url = string.Format("EventId", Application.streamingAssetsPath, CJFIOPPOPJO);
|
|
this.videoPlayer.Play();
|
|
Debug.Log("F0" + CJFIOPPOPJO);
|
|
}
|
|
|
|
// Token: 0x17000921 RID: 2337
|
|
// (get) Token: 0x06015D39 RID: 89401 RVA: 0x0060BB6C File Offset: 0x00609D6C
|
|
public bool AGDIGGCMPGJ
|
|
{
|
|
get
|
|
{
|
|
return this.videoPlayer.isPlaying;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015D3A RID: 89402 RVA: 0x0060BB7C File Offset: 0x00609D7C
|
|
public void HCGFPMDNMBC()
|
|
{
|
|
this.Stop();
|
|
}
|
|
|
|
// Token: 0x04003CD9 RID: 15577
|
|
[ENMFCLPAKBJ(FOGKDGELKHN.Self, false)]
|
|
[SerializeField]
|
|
private VideoPlayer videoPlayer;
|
|
|
|
// Token: 0x04003CDA RID: 15578
|
|
[SerializeField]
|
|
private AudioSource audioSource;
|
|
|
|
// Token: 0x04003CDB RID: 15579
|
|
public string streamingAssetsMoviePath;
|
|
|
|
// Token: 0x04003CDC RID: 15580
|
|
[Header("PS4-specific Parameters")]
|
|
public int renderWidth = 1280;
|
|
|
|
// Token: 0x04003CDD RID: 15581
|
|
public int renderHeight = 720;
|
|
|
|
// Token: 0x04003CDE RID: 15582
|
|
public Renderer playTarget;
|
|
}
|
|
}
|