예제 #1
0
파일: Config.cs 프로젝트: tongwanming/DXG
    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;
    }
예제 #2
0
파일: Config.cs 프로젝트: tongwanming/DXG
    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;
    }