Ejemplo n.º 1
0
    private void VoidEvent_Started(VoidEvent.EventType eventType, int tier)
    {
        TutorialController.Instance.TriggerEvent(TutorialController.Triggers.FIRST_EVENT);
        switch (eventType)
        {
        case VoidEvent.EventType.Junkyard:
            Debug.Log("Junkyard " + tier + " begin.");
            blockSpawner.SetJunkyardTier(tier);
            blockSpawner.BeginJunkyardEvent();
            TutorialController.Instance.TriggerEvent(TutorialController.Triggers.FIRST_URANIUM);
            break;

        case VoidEvent.EventType.Radiation:
            Debug.Log("Radiation " + tier + " begin.");
            blockSpawner.SetVestigesPerBlock(tierToVestigeCount[tier]);
            blockSpawner.SetVestigeLevel(tierToVestigeLevel[tier]);
            grid.SetBaseEnergyDecayRateBonus(tierToDecayBonus[tier]);
            TutorialController.Instance.TriggerEvent(TutorialController.Triggers.FIRST_CONTAMINATION);
            break;

        case VoidEvent.EventType.Asteroids:
            Debug.Log("Asteroids " + tier + " begin.");
            grid.AddAsteroids(tierToAsteroidCount[tier]);
            TutorialController.Instance.TriggerEvent(TutorialController.Triggers.FIRST_BREACH);
            break;
        }
    }