示例#1
0
    public void ComboEngage(int combo) //public tylko na chwile (do wpisywania combo w grze)
    {
        // Debug.Log(combo);
        switch (combo)
        {
        case 123:    // tylko do testowania dodaje gwiazdek na shopping trzeba usunac pozniej
            player.GetComponent <PlayerHPSystem>().ChangeOwnedStars(10000);
            break;

        case 111:
            infoGenerator.MakeInfoObject("GodMode ON");
            player.GetComponent <PlayerHPSystem>().godMode = true;
            break;

        case 112:
            infoGenerator.MakeInfoObject("GodMode OFF");
            player.GetComponent <PlayerHPSystem>().godMode = false;
            break;

        case 7:     //Alternavive Obstacles //challenge
            float alterObstacleTime = Random.Range(1, 2.5f);
            SafeBigInfoGeneration("Alternavive Obstacles");
            obstacleGenerator.SetSawObstacleMode(true);
            alterObstacleTime *= 60;
            StartCoroutine(StopEffect(alterObstacleTime, 111000300));
            break;

        case 10:     //Missile Ride     //challenge
            GetComponent <BubbleGeneratorScript>().SetAlternativeMode(true, false, true);
            obstacleGenerator.obstacleSpawning = false;
            spawner.SpawnObstacleDestroyingLine();
            player.GetComponent <PlayerCollision>().MissileRaidMode = true;
            missileRaidDifficulty = 0;     //ilosc rakiet w pierwszej salwie
            SafeBigInfoGeneration("Missile Ride Mode\nActivated");
            StartCoroutine(MissileRaid(true));
            break;

        case 14:     //Super Mystery Air Support    //challenge
            SafeBigInfoGeneration("Super Air Support\nhave rest");
            Instantiate(MysteryAirSupport, new Vector3(0, 5, 0), Quaternion.identity, transform);
            Instantiate(MysteryAirSupport, new Vector3(1.5f, 5.5f, 0), Quaternion.identity, transform);
            Instantiate(MysteryAirSupport, new Vector3(-1.5f, 5.5f, 0), Quaternion.identity, transform);
            Instantiate(MysteryAirSupport, new Vector3(3, 6, 0), Quaternion.identity, transform);
            Instantiate(MysteryAirSupport, new Vector3(-3, 6, 0), Quaternion.identity, transform);
            break;

        case 17:     //Boss challenge
            SafeBigInfoGeneration("Boss Summoned");
            spawner.SpawnFisrtBoss();
            break;

        case 116:
            infoGenerator.MakeInfoObject("Destroying Obstacles & Bubbles");
            spawner.SpawnDestroyingLine();
            break;

        case 119:
            infoGenerator.MakeInfoObject("Destroying Obstacles");
            spawner.SpawnObstacleDestroyingLine();
            break;

        case 120:
            infoGenerator.MakeInfoObject("Destroying Bubbles");
            spawner.SpawnBubbleDestroyingLine();
            break;

        default:
            Debug.Log("Comboingage blad");
            break;
        }
    }