@@ -530,7 +530,7 @@ namespace Common
530530{
531531 public interface IActorViewRpc_NoReply
532532 {
533- void OnSetMoveDirection ( float x , float y ) ;
533+ void OnSetMoveDirection ( float moveX , float moveY , UnityEngine . Vector3 position ) ;
534534 void OnTest ( UnityEngine . Vector3 position , UnityEngine . Quaternion rotation ) ;
535535 }
536536
@@ -601,14 +601,15 @@ public ActorViewRpc WithTimeout(TimeSpan? timeout)
601601 return new ActorViewRpc ( Target , RequestWaiter , timeout ) ;
602602 }
603603
604- public async Task OnSetMoveDirection ( float x , float y )
604+ public async Task OnSetMoveDirection ( float moveX , float moveY , UnityEngine . Vector3 position )
605605 {
606606 var _writer_ = NetPool . DataWriterPool . Alloc ( ) ;
607607 try
608608 {
609609 _writer_ . Write ( ( int ) IActorViewRpc_Enum . OnSetMoveDirection ) ;
610- _writer_ . Write ( x ) ;
611- _writer_ . Write ( y ) ;
610+ _writer_ . Write ( moveX ) ;
611+ _writer_ . Write ( moveY ) ;
612+ _writer_ . Write ( position ) ;
612613 await SendRequestAndWait ( _writer_ ) ;
613614 }
614615 finally
@@ -636,14 +637,15 @@ public async Task OnSetMoveDirection(float x, float y)
636637 }
637638 }
638639
639- void IActorViewRpc_NoReply . OnSetMoveDirection ( float x , float y )
640+ void IActorViewRpc_NoReply . OnSetMoveDirection ( float moveX , float moveY , UnityEngine . Vector3 position )
640641 {
641642 var _writer_ = NetPool . DataWriterPool . Alloc ( ) ;
642643 try
643644 {
644645 _writer_ . Write ( ( int ) IActorViewRpc_Enum . OnSetMoveDirection ) ;
645- _writer_ . Write ( x ) ;
646- _writer_ . Write ( y ) ;
646+ _writer_ . Write ( moveX ) ;
647+ _writer_ . Write ( moveY ) ;
648+ _writer_ . Write ( position ) ;
647649 SendRequest ( _writer_ ) ;
648650 }
649651 finally
@@ -672,7 +674,7 @@ void IActorViewRpc_NoReply.OnTest(UnityEngine.Vector3 position, UnityEngine.Quat
672674 [ RequireComponent ( typeof ( NetView ) ) ]
673675 public abstract class ActorViewRpcServiceBehaviour : MonoBehaviour , IRpcInvokable , IActorViewRpc
674676 {
675- public abstract Task OnSetMoveDirection ( float x , float y ) ;
677+ public abstract Task OnSetMoveDirection ( float moveX , float moveY , UnityEngine . Vector3 position ) ;
676678 public abstract Task < UnityEngine . Color > OnTest ( UnityEngine . Vector3 position , UnityEngine . Quaternion rotation ) ;
677679 public async Task < bool > Invoke ( object _target_ , NetDataReader _reader_ , NetDataWriter _writer_ )
678680 {
@@ -682,9 +684,10 @@ public async Task<bool> Invoke(object _target_, NetDataReader _reader_, NetDataW
682684 {
683685 case IActorViewRpc_Enum . OnSetMoveDirection :
684686 {
685- var x = _reader_ . ReadSingle ( ) ;
686- var y = _reader_ . ReadSingle ( ) ;
687- await OnSetMoveDirection ( x , y ) ;
687+ var moveX = _reader_ . ReadSingle ( ) ;
688+ var moveY = _reader_ . ReadSingle ( ) ;
689+ var position = _reader_ . ReadVector3 ( ) ;
690+ await OnSetMoveDirection ( moveX , moveY , position ) ;
688691 }
689692 break ;
690693 case IActorViewRpc_Enum . OnTest :
@@ -712,9 +715,10 @@ public async Task<bool> Invoke(object _target_, NetDataReader _reader_, NetDataW
712715 {
713716 case IActorViewRpc_Enum . OnSetMoveDirection :
714717 {
715- var x = _reader_ . ReadSingle ( ) ;
716- var y = _reader_ . ReadSingle ( ) ;
717- await _view_ . FindRpcHandler < IActorViewRpc > ( ) . OnSetMoveDirection ( x , y ) ;
718+ var moveX = _reader_ . ReadSingle ( ) ;
719+ var moveY = _reader_ . ReadSingle ( ) ;
720+ var position = _reader_ . ReadVector3 ( ) ;
721+ await _view_ . FindRpcHandler < IActorViewRpc > ( ) . OnSetMoveDirection ( moveX , moveY , position ) ;
718722 }
719723 break ;
720724 case IActorViewRpc_Enum . OnTest :
0 commit comments