コード例 #1
0
    /// <inheritdoc/>
    public SerObjectProperties GetSerializedData()
    {
        SerColorChangingProperties ser = new SerColorChangingProperties();

        ser.color = this.color;
        return(ser);
    }
コード例 #2
0
    /// <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);
    }