Пример #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());
 }