Example #1
0
 //Initialize the image given the serialized data
 public void Initialize(ImageDataSerializable data, int index)
 {
     CC_Selectable.CreateUIElement(gameObject);
     GetComponent<CC_Selectable>().myCanvas = index;
     this.data = data;
     StartCoroutine("Init");
 }
Example #2
0
 //Initialize the image given the serialized data
 public void Initialize(ImageDataSerializable data, int index)
 {
     CC_Selectable.CreateUIElement(gameObject);
     GetComponent <CC_Selectable>().myCanvas = index;
     this.data = data;
     StartCoroutine("Init");
 }
Example #3
0
    public ImageDataSerializable GetDataSerializable()
    {
        ImageDataSerializable sd = new ImageDataSerializable();
        sd.path = path;
        sd.posData = transform.position;
        sd.rotData = transform.rotation.eulerAngles;
        sd.scaleData = transform.localScale;

        return sd;
    }
Example #4
0
    public ImageDataSerializable GetDataSerializable()
    {
        ImageDataSerializable sd = new ImageDataSerializable();

        sd.path      = path;
        sd.posData   = transform.position;
        sd.rotData   = transform.rotation.eulerAngles;
        sd.scaleData = transform.localScale;

        return(sd);
    }