Пример #1
0
    public void SetHex(Hex newHex)
    {
        Hex oldHex = Hex;

        if (Hex != null)
        {
            Hex.RemoveBall(this);
        }

        Hex = newHex;

        Hex.AddBall(this);

        if (OnBallMoved != null)
        {
            OnBallMoved(oldHex, newHex);
        }
    }