internal void CreateTypeSphere(LevelSphere.Type type = LevelSphere.Type.nomal) { LevelSphere levelSphere; if (SphereCreateParent.childCount != 0) { levelSphere = SphereCreateParent.GetChild(0).GetComponent <LevelSphere>(); levelSphere.SphereType = type; levelSphere.anchoredPosition3D(new Vector3(0, -100, 0)).localScale(1); } else { levelSphere = CreateSphere(SphereCreateParent, 0, new Vector3(0, -100, 0), type); } levelSphere.m_Circle.enabled = false; }
internal void CreateDefute() { int value = m_GetStartIndex[isRangeResult ? getResult(m_StartRange, 100) : m_Result]; LevelSphere levelSphere; if (SphereCreateParent.childCount != 0) { levelSphere = SphereCreateParent.GetChild(0).GetComponent <LevelSphere>(); levelSphere.anchoredPosition3D(new Vector3(0, -100, 0)).localScale(1); } else { levelSphere = CreateSphere(SphereCreateParent, value, new Vector3(0, -100, 0)); } float temp = Mathf.Log(levelSphere.SphereNum, 2); levelSphere.anchoredPosition3D(new Vector3(0, temp > 7 ? -100 - (temp - 7) * 10 : -100, 0)); levelSphere.m_Circle.enabled = false; }