예제 #1
0
    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);
    }
예제 #2
0
 internal void SetHandler(GamePieceHandler handler)
 {
     m_Handler = handler;
 }