Пример #1
0
    public void MoveTo(Shinobytes.Ravenfall.RavenNet.Models.Vector3 destination, bool running = false)
    {
        var from = playerManager.Me.transform.position;

        if (from == (UnityEngine.Vector3)destination)
        {
            return;
        }
        gameClient.Send(new PlayerMoveRequest
        {
            Position    = from,
            Destination = destination,
            Running     = running,
        }, SendOption.Reliable);
    }
Пример #2
0
 protected virtual void SendAuthRequest(IRavenClient client, string username, string password)
 {
     client.Send(new AuthRequest()
     {
         Username = username,
         Password = password
     }, SendOption.Reliable);
 }
 protected override void SendAuthRequest(IRavenClient client, string username, string password)
 {
     client.Send(new BotAuthRequest {
         Username = username, Password = password
     }, SendOption.Reliable);
 }