示例#1
0
        public void GetState(ref NetworkCharacterComponent state)
        {
            state.AngleH = this.pitch;
            state.AngleV = this.yaw;
            state.AimH   = this.dir.x;
            state.AimV   = this.dir.y;

            state.CopyFrom(motor.GetState());
        }
示例#2
0
 public void ApplyState(ref NetworkCharacterComponent state)
 {
     this.motor.ApplyState(state.GetState());
 }