protected virtual void Start() { //Load the Character if (ExpressionSetFile != null) { character.Init(ExpressionSetFile.Expressions, ExpressionSetFile.Controls); List <string> missingCtrlList = LiveUnityInterface.ValidateControls(this.gameObject, character.GetControlList()); if (missingCtrlList.Count > 0) { string msg = "[Faceware Live] These controls are not in your scene:\n"; foreach (string ctrl in missingCtrlList) { msg += ctrl; msg += "\n"; } Debug.LogWarning(msg); } //Setup Connection to Live live = new LiveConnection(LiveServerHostIP, LiveServerHostPort); live.m_Reconnect = ReconnectOnLostConnection; // Connect on Play if toggled true if (ConnectOnPlay) { Connect(); } live.m_DropPackets = DropPackets; } if (RecordOnStart && EnableRecording) { OnToggleRecording(); } }
protected override void Start() { //Setup Connection to Live live = new LiveConnection(LiveServerHostIP, LiveServerHostPort); live.m_Reconnect = ReconnectOnLostConnection; // Connect on Play if toggled true if (ConnectOnPlay) { Connect(); } live.m_DropPackets = DropPackets; base.Start(); }
/// <summary> /// Initializes a new instance of the <see cref="ClientConnectedEventArgs"/> class. /// </summary> /// <param name="connection">The connection.</param> public ClientConnectedEventArgs(LiveConnection connection) { this.Connection = connection; }