virtual public void SetHex(Hex newHex) { Hex oldHex = Hex; Hex = newHex; OnObjectMoved?.Invoke(oldHex, newHex); }
virtual public void SetHex(Hex newHex) { Hex oldHex; if (Hex != null) { oldHex = Hex; } else { oldHex = newHex; } Hex = newHex; OnObjectMoved?.Invoke(oldHex, newHex); }
public void ObjectMoved(string key, double x, double y, double z) { OnObjectMoved?.Invoke(key, x, y, z); }