void SendNewMessage(UserActor _actor) { mmopb.UserActor_req req = new mmopb.UserActor_req(); req.name = _actor.name; req.position = new mmopb.Vector2(); req.position.x = _actor.position.x; req.position.y = _actor.position.y; req.LifeState = _actor.LifeState; req.action = new mmopb.Action(); req.action.jump = _actor.jump; req.action.walk = _actor.walk; req.action.attack = _actor.attack; req.gender = _actor.gender; req.RoomID = Network.m_Actor.inRoomNum; Tools.GetComponent <Tools>().SendUserActorReq(req); }
public void SendUserActorReq(mmopb.UserActor_req req) { Network.m_Actor.SendMessage(req); }