public StoneData(string id, string bowlID) : base(id) { _bowlID = bowlID; _previewBowlID = bowlID; BowlID = new Notifying <string>(() => _bowlID, x => _bowlID = x); PreviewBowlID = new Notifying <string>(() => _previewBowlID, x => _previewBowlID = x); }
public StoneBodyData(string id, Vector3 position, Quaternion rotation) : base(id) { _position = position; _rotation = rotation; Position = new Notifying <Vector3>(() => _position, x => _position = x); Rotation = new Notifying <Quaternion>(() => _rotation, x => _rotation = x); IsPreviewing = new Notifying <bool>(() => _isPreviewing, x => _isPreviewing = x); }
//Serialization public StoneData() { BowlID = new Notifying <string>(() => _bowlID, x => _bowlID = x); PreviewBowlID = new Notifying <string>(() => _previewBowlID, x => _previewBowlID = x); }
//Serialization public StoneBodyData() { Position = new Notifying <Vector3>(() => _position, x => _position = x); Rotation = new Notifying <Quaternion>(() => _rotation, x => _rotation = x); IsPreviewing = new Notifying <bool>(() => _isPreviewing, x => _isPreviewing = x); }