Exemple #1
0
    virtual public void SetHex(Hex newHex)
    {
        Hex oldHex = Hex;

        Hex = newHex;

        OnObjectMoved?.Invoke(oldHex, newHex);
    }
Exemple #2
0
    virtual public void SetHex(Hex newHex)
    {
        Hex oldHex;

        if (Hex != null)
        {
            oldHex = Hex;
        }
        else
        {
            oldHex = newHex;
        }
        Hex = newHex;

        OnObjectMoved?.Invoke(oldHex, newHex);
    }
Exemple #3
0
 public void ObjectMoved(string key, double x, double y, double z)
 {
     OnObjectMoved?.Invoke(key, x, y, z);
 }