public override bool ProcessUpdate(JediumBehaviourMessage message) { if (Initialized) { if (message == null) { return(false); } if (!(message is JediumSitMessage)) { return(false); } Debug.Log("Take from server returned:"); JediumSitMessage inputMessage = (JediumSitMessage)message; Debug.Log("Local ID: " + inputMessage.LocalId); SittingExecution(inputMessage.ClientId, inputMessage.IsOccupied); return(true); } else { return(false); } }
private void OnSitted() { if (person == Guid.Empty) { Debug.Log("OnSitted message started"); JediumSitMessage sitMes = new JediumSitMessage(Test.Instance._clientId, _parent.LocalId, true); _updater.AddUpdate(sitMes); } }
private void OnStanded() { if (person == Test.Instance._clientId) { Debug.Log("OnStanded message started"); JediumSitMessage sitMes = new JediumSitMessage(Test.Instance._clientId, _parent.LocalId, false); _updater.AddUpdate(sitMes); } }