void TurnToFaceTarget(GamePiece targetPiece) { m_DeltaRotation = Quaternion.LookRotation (targetPiece.transform.position - transform.position); m_DeltaRotation.z = 0; transform.rotation = Quaternion.Euler (Utility.GetRotationToNearestRightAngle(m_DeltaRotation.eulerAngles)); GamePieceHandler.RelayPieceSyncToClientManager (ControllingPlayerId, ControllingPlayerPosition, this); }
internal void SetHandler(GamePieceHandler handler) { m_Handler = handler; }