示例#1
0
    protected override void InitDifficult(ELevelDifficult diff)
    {
        switch (diff)
        {
        case ELevelDifficult.Easy:
            StarCount    = 11;
            RedStarCount = 1;
            TurnSpeed    = 0.2f;
            break;

        case ELevelDifficult.Normal:
            StarCount    = 13;
            RedStarCount = 5;
            TurnSpeed    = 0.4f;
            break;

        case ELevelDifficult.Hard:
            StarCount    = 17;
            RedStarCount = 9;
            TurnSpeed    = 0.6f;
            break;

        case ELevelDifficult.Lunatic:
        case ELevelDifficult.Extra:
            StarCount    = 19;
            RedStarCount = 11;
            TurnSpeed    = 0.75f;
            break;
        }
    }
示例#2
0
    protected override void InitDifficult(ELevelDifficult diff)
    {
        switch (diff)
        {
        case ELevelDifficult.Easy:
            BlueBulletCount = 1;
            LaserFrame      = 20;
            RedBulletSpeed  = 6f;
            RedBulletFrame  = 8;
            break;

        case ELevelDifficult.Normal:
            BlueBulletCount = 2;
            LaserFrame      = 15;
            RedBulletSpeed  = 6f;
            RedBulletFrame  = 8;
            break;

        case ELevelDifficult.Hard:
            BlueBulletCount = 3;
            LaserFrame      = 10;
            RedBulletSpeed  = 8f;
            RedBulletFrame  = 4;
            break;

        case ELevelDifficult.Lunatic:
        case ELevelDifficult.Extra:
            BlueBulletCount = 4;
            LaserFrame      = 7;
            RedBulletSpeed  = 8f;
            RedBulletFrame  = 2;
            break;
        }
    }
示例#3
0
    protected override void InitDifficult(ELevelDifficult diff)
    {
        switch (diff)
        {
        case ELevelDifficult.Easy:
            BlueBulletCount = 4;
            RedBulletCount  = 3;
            break;

        case ELevelDifficult.Normal:
            BlueBulletCount = 6;
            RedBulletCount  = 4;
            break;

        case ELevelDifficult.Hard:
            BlueBulletCount = 8;
            RedBulletCount  = 5;
            break;

        case ELevelDifficult.Lunatic:
        case ELevelDifficult.Extra:
            BlueBulletCount = 12;
            RedBulletCount  = 7;
            break;
        }
    }
示例#4
0
    private void OnClick(ELevelDifficult diff)
    {
        StageMgr.Data.Difficult = diff;


        //复制出来闪烁
        var source = _bind.Menu.ItemList[_bind.Menu.CurrSelectIdx] as UIChooseDifficultItem;
        var obj    = ResourceMgr.Instantiate(source.gameObject);
        var item   = obj.GetComponent <UIChooseDifficultItem>();

        source.SetActiveSafe(false);
        UIChoosePlayer.Show(item);
    }
示例#5
0
 //难度设置
 protected abstract void InitDifficult(ELevelDifficult diff);