//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"); }
//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"); }
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; }
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); }