Beispiel #1
0
 public void SendRunAnimationState(PlayerAnimation.RunState state)
 {
     if (state != prevRunState)
     {
         string s = SerializationScript.SerlializeRunAnimationState(_myID, state);
         SendData(s, 1, true);
         prevRunState = state;
     }
 }
Beispiel #2
0
 public SendRunAnimMessage(PlayerAnimation.RunState state)
 {
     this.state = state;
 }
Beispiel #3
0
 public static string SerlializeRunAnimationState(int id, PlayerAnimation.RunState state)
 {
     return(GameEvent.ANIMATION + ":" + GameEvent.RUN_ANIM + ":" + id + ":" + (int)state);
 }