コード例 #1
0
ファイル: TapTapKnife.cs プロジェクト: Ansiya555/KnifeMaster
    void EasyRotation(RotationEasy easy)
    {
        switch (easy)
        {
        case RotationEasy.Continuous_1:
            print("Continuous ==> " + rotationSpeed[0] + " secs");
            StartCoroutine(coContinuous(rotationSpeed[0]));
            break;

        case RotationEasy.Continuous_2:
            print("Continuous ==> " + rotationSpeed[1] + " secs");
            StartCoroutine(coContinuous(rotationSpeed[1]));
            break;

        case RotationEasy.SlowInSlowOut:
            print("Stop And Go Slow In Slow Out ==> " + rotationSpeed[2] + " secs");
            StartCoroutine(coSlowInSlowOut(rotationSpeed[2], 0, true, false));
            break;

        case RotationEasy.SlowInSlowOut_3:
            print("Stop And Go Slow In Slow Out After 3 Rounds ==> " + rotationSpeed[3] + " secs");
            StartCoroutine(coSlowInSlowOut(rotationSpeed[3], 3, true, false));
            break;

        case RotationEasy.ReverseSlowInSlowOut:
            print("Stop And Reverse Slow In Slow Out ==> " + rotationSpeed[4] + " secs");
            StartCoroutine(coSlowInSlowOut(rotationSpeed[4], 0, true, true));
            break;

        default:
            break;
        }
    }
コード例 #2
0
ファイル: TapTapKnife.cs プロジェクト: Ansiya555/KnifeMaster
    void SetRotationOfBoard(Difficulty difficulty)
    {
        switch (difficulty)
        {
        case Difficulty.Easy:
            RotationEasy rotationE = (RotationEasy)Random.Range(0, (int)RotationEasy.Max);
            EasyRotation(rotationE);
            break;

        case Difficulty.EasyMedium:
            RotationEasyMedium rotationEM = (RotationEasyMedium)Random.Range(0, (int)RotationEasyMedium.Max);
            EasyMediumRotation(rotationEM);
            break;

        case Difficulty.Medium:
            RotationMedium rotationM = (RotationMedium)Random.Range(0, (int)RotationMedium.Max);
            MediumRotaion(rotationM);
            break;

        case Difficulty.MediumHard:
            RotationMediumHard rotationMH = (RotationMediumHard)Random.Range(0, (int)RotationMediumHard.Max);
            MediumHardRotation(rotationMH);
            break;

        case Difficulty.Hard:
            RotationHard rotationH = (RotationHard)Random.Range(0, (int)RotationHard.Max);
            HardRotation(rotationH);
            break;

        case Difficulty.EasyHard:
            RotationEasyHard rotationEH = (RotationEasyHard)Random.Range(0, (int)RotationEasyHard.Max);
            EasyHardRotation(rotationEH);
            break;

        case Difficulty.Bonus:
            //Test easy rotTION
            RotationEasy rotationB = (RotationEasy)Random.Range(0, (int)RotationEasy.Max);
            EasyRotation(rotationB);
            break;

        default:
            break;
        }
    }