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