public void SubjectUpdated(object dataPacked) { if (!MyAgentManager.IsOwnerAgent(selectedId)) { selectedId = -1; InvisableCancelButton(); } Refresh(); }
public void R_MOVE(SocketIOEvent obj) { //Debugger.Log(obj.ToString().Substring(0,150)); JSONObject r_move = obj.data["R_MOVE"]; int id = -1; r_move.GetField(ref id, "ID"); if (!MyAgentManager.IsOwnerAgent(id)) { AgentRemote agent = AgentManager.GetAgentRemote(id); agent?.FixedMove.StartMove(r_move); } }