/// <summary> /// 映し元を反映 /// </summary> private void ReflectToOrigin() { ObjectSize objSize = originObj.GetComponent <ObjectSize>(); if (objSize) { objSize.SetSize(size); objSize.SetReflectSize(sizeRate); } }
/// <summary> /// 像の情報などをリリース /// </summary> public void Release() { DestroyReflects(); //像を消す for (int i = 0; i < originObj.Count; ++i) { if (!originObj[i]) { continue; } ObjectSize objSize = originObj[i].GetComponent <ObjectSize>(); if (objSize) { objSize.SetSize(SizeEnum.Normal); } ChangeObjectSize cos = originObj[i].GetComponent <ChangeObjectSize>(); if (cos) { cos.ReleaseMirror(); } } originObj.Clear(); //リストクリア }