Exemplo n.º 1
0
    /// <inheritdoc/>
    public SerObjectProperties GetSerializedData()
    {
        SerCubeProperties ser = new SerCubeProperties();

        ser.color = this.color;
        return(ser);
    }
Exemplo n.º 2
0
    /// <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);
    }