/// <inheritdoc/> public SerObjectProperties GetSerializedData() { SerColorChangingProperties ser = new SerColorChangingProperties(); ser.color = this.color; return(ser); }
/// <inheritdoc/> public bool SetupSerialziedData(SerObjectProperties serData) { SerColorChangingProperties serCubeProperties = (SerColorChangingProperties)serData; this.color = serCubeProperties.color; ColorChangingUI cui = FindObjectOfType(typeof(ColorChangingUI)) as ColorChangingUI; cui.Setup(gameObject, this.color); return(true); }