Ejemplo n.º 1
0
 public void ignoreTutorialTip(TutorialSystem.TutorialTip tiptype)
 {
     TutorialSystem.TutorialHintArray[(int)tiptype] = true;//We don't need to see this tip. We know how to use this skill.
 }
Ejemplo n.º 2
0
    public void showTutorialTip(TutorialSystem.TutorialTip tiptype)
    {
        if (TutorialSystem.TutorialHintArray[(int)tiptype])
        {
            return;
        }
        if (TutorialSystem.TutorialQueuedArray[(int)tiptype])
        {
            return;
        }
        TutorialSystem.TutorialHintArray[(int)tiptype] = true;


        if (ignoringAllTips)
        {
            return;
        }
        if (showingTutorialTip)
        {
            if (TutorialSystem.TutorialQueuedArray[(int)tiptype])
            {
                return;
            }
            TutorialSystem.TutorialQueuedArray[(int)tiptype] = true;
            TutorialQueue.Enqueue(tiptype);
            return;
        }
        terminateTip = false;
        TutorialSystem.TutorialQueuedArray[(int)tiptype] = true;

        float  dur         = 6f;
        string missingtext = "<missing tutorial tip>";
        string tx          = missingtext;

        switch (tiptype)
        {
        case TutorialSystem.TutorialTip.WalkMovement:
        {
            tx = "Press A or D to move left or right";
            break;
        }

        case TutorialSystem.TutorialTip.Shoot:
        {
            tx = "[LEFT CLICK] to Shoot your current weapon";
            break;
        }

        case TutorialSystem.TutorialTip.SkipTip:
        {
            dur = 4f;
            tx  = "Press [TAB] to close Tips like this";
            break;
        }

        case TutorialSystem.TutorialTip.IgnoreTips:
        {
            tx = "Rather figure the rest out on your own? Press [ENTER] to stop seeing these Tips";
            break;
        }

        case TutorialSystem.TutorialTip.SwapWeapons:
        {
            tx = "Press [2], [3], [4], or [5] to switch back to a stronger weapon you have found";
            break;
        }

        case TutorialSystem.TutorialTip.SwapPistol:
        {
            tx = "You found a powerful Weapon that has limited ammo. Conserve ammo by swapping to your Pistol by pressing [1]";
            break;
        }

        case TutorialSystem.TutorialTip.Injured:
        {
            tx  = "You are hurt. Avoid damage for a few seconds to Regenerate Health or activate a Stim Pack by pressing [E] to restore your health quicker.";
            dur = 8f;
            break;
        }

        case TutorialSystem.TutorialTip.Revive:
        {
            tx  = "You Died. Tap [SPACE] to Revive.";
            dur = 5f;
            break;
        }

        case TutorialSystem.TutorialTip.OnRevived:
        {
            tx  = "Pick up your dropped Vita energy before it disappears to retain your power!";
            dur = 5f;
            break;
        }

        case TutorialSystem.TutorialTip.VitaPower:
        {
            tx = "Enemies drop Vita Energy which will increase the amount of power you get from the element of this planet.";
            break;
        }

        case TutorialSystem.TutorialTip.VitaDifficulty:
        {
            tx = "Your Vita Energy level has increased, this makes enemies more aggressive towards you.";
            break;
        }

        case TutorialSystem.TutorialTip.VitaDropped:
        {
            tx = "Dieing causes you to drop the Vita Energy you collected, making enemies less aggressive again. Revive quickly to retrieve the Vita Energy";
            break;
        }

        case TutorialSystem.TutorialTip.TooManyDeaths:
        {
            tx = "Each time you die causes enemies to do less damage, however they drop less energy when killed";
            break;
        }

        case TutorialSystem.TutorialTip.Jump:
        {
            tx = "Press SPACE to Jump in the air. Hold it down to go higher!";
            break;
        }

        case TutorialSystem.TutorialTip.DoubleJump:
        {
            tx = "Press SPACE while in midair to use your Boost pack for a Double Jump";
            break;
        }

        case TutorialSystem.TutorialTip.ChoosePlanet:
        {
            tx  = "Click on a Planet to begin!";
            dur = 3f;
            break;
        }

        case TutorialSystem.TutorialTip.ScrollElement:
        {
            tx = "Use the SCROLL WHEEL to switch between elements";
            break;
        }

        case TutorialSystem.TutorialTip.UseElement:
        {
            tx = "Hold the RIGHT Mouse Button to use your Elemental power";
            break;
        }

        case TutorialSystem.TutorialTip.PistolFastFire:
        {
            tx = "Fire your Pistol faster by tapping faster at the expense of less Accuracy";
            break;
        }

        default:
        {
            tx = "<" + tiptype.ToString() + " Tip>";
            break;
        }
        }

        tutorialTipTime      = Time.time;
        tutorialTipDuration  = dur;
        showingTutorialTip   = true;
        TutorialTipText.text = tx;
        tipsshown++;
        if (tipsshown >= 3)
        {
            GameManager.TheGameManager.showTutorialTip(TutorialSystem.TutorialTip.SkipTip);
        }
        if (tipsshown >= 5)
        {
            GameManager.TheGameManager.showTutorialTip(TutorialSystem.TutorialTip.IgnoreTips);
        }
        AudioManager.AM.playGeneralSoundOneShot(AudioManager.AM.TipIn, AudioManager.AM.PlayerAudioMixer, 1f, 1f, false, 4f);//Play the tutorial tip-in sound
    }