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()); }
public void ApplyState(ref NetworkCharacterComponent state) { this.motor.ApplyState(state.GetState()); }