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