Ejemplo n.º 1
0
    public void EndCinematic()
    {
        if (!endNarrate)
        {
            fadeTimer = crossfader.fadeClock;
            crossfader.StartFade();
            endNarrate = true;

            foreach (ScreenPlay talker in phases[nextPhase].ActiveOnPhase.GetComponentsInChildren <ScreenPlay>())
            {
                talker.enabled = false;
            }
            NarrationWriter.DismissNow();

            if (callNextPhaseAfterCinematic)
            {
                int newphase = 0;

                if (phases[nextPhase].nextPhase != null)
                {
                    newphase = phaseid(phases[nextPhase].nextPhase);
                }

                if (newphase != 0)
                {
                    nextPhase = newphase;
                }
                else
                {
                    nextPhase++;
                }
            }
        }
    }
Ejemplo n.º 2
0
    void EnginesDisabled()
    {
        if (condition >= 0)
        {
            ShipDialogue(gameObject.name + " Engines: DISABLED");

            //Raimi Commentary
            NarrationWriter.PopDialogue(string.Format("<b><i>{0}</i></b> Engines: DISABLED", gameObject.name), "Raimi", 3);
            NarrationWriter.Ambience(moodEdge.getMoods().relief);

            condition = shipCondition.adrift;
        }
    }
Ejemplo n.º 3
0
    public void Panic(string info = "")
    {
        string message = "";
        int    phrase  = Mathf.RoundToInt(Random.value * 10 * (panic.Length - 1)) / 10;

        message += panic[phrase];
        if (info != "")
        {
            message += "\n" + info;
        }

        NarrationWriter.Ambience(moodEdge.getMoods().anxiety);
        NarrationWriter.PopDialogue(message, "Raimi", 3);
    }
Ejemplo n.º 4
0
    //ONLY ONE SCREENPLAY AT A TIME!!!!

    public void RunScreenPlay(int next = 0)
    {
        if (nextLine < line.Length)
        {
            NarrationWriter.PopDialogue(line[nextLine].dialogue, line[nextLine].actor, line[nextLine].displayTime);


            debugMessage = "Displaying line " + nextLine + " by " + line[nextLine].actor.ToString();
        }

        nextLine++;

        //tell narrator to wait for another line
        NarrationWriter.followUp = (nextLine < line.Length);
    }
Ejemplo n.º 5
0
    public void Loss(string info = "")
    {
        string message = "";
        int    phrase  = Mathf.RoundToInt(Random.value * 10 * (loss.Length - 1)) / 10;

        message += loss[phrase];
        if (info != "")
        {
            message += "\n" + info;
        }


        NarrationWriter.Ambience(moodEdge.getMoods().remorse);
        NarrationWriter.PopDialogue(message, "Raimi", 3);
    }
Ejemplo n.º 6
0
    void Death()
    {
        AllClear();


        ShipDialogue(gameObject.name + " destroyed. All " + soulsOnboard + " souls lost.");
        //       DialogueBox.PrintToDBox(gameObject.name + " destroyed. All " + soulsOnboard + " souls lost.", gameObject);

        if (soulsOnboard > 10)
        {
            if (!isFriendly())
            {
                DialogueBox.enemyBar.gameObject.SetActive(false);
                DialogueBox.enemyStatus.text = "";
                DialogueBox.tracking         = null;

                Raimi.GetReactions().Remorse(string.Format("<b><i>{0}</i></b> has been destroyed... Objective complete, though all <i>{1} souls</i> have been lost.", gameObject.name, soulsAlive));
            }

            else
            {
                Raimi.GetReactions().Loss(string.Format("We've lost the <b><i>{0}</i></b>. All <i>{1} crew</i> aboard are being reported as casualties.", gameObject.name, soulsOnboard));
            }
        }
        else
        {
            NarrationWriter.PopDialogue(string.Format("<b><i>{0}</i></b> has been destroyed.", gameObject.name), "Raimi", 3);
        }

        beDead();


        if (drop == true && winDrop != null)
        {
            drop = false;
            Instantiate(winDrop, transform.position, transform.rotation);
        }


        if (splode != null)
        {
            splode.SetActive(true);
        }
    }
Ejemplo n.º 7
0
    public void React(string info = "")
    {
        string message   = "";
        int    phraseNum = Mathf.RoundToInt(Random.value * 10 * (phrases.Length - 1)) / 10;

        message += phrases[phraseNum];
        if (info != "")
        {
            message += "\n" + info;
        }

        NarrationWriter.Ambience(tone);

        if (actor == emoter.Raimi)
        {
            NarrationWriter.PopDialogue(message, "Raimi", 3);
        }
        else
        {
            NarrationWriter.PopDialogue(message, "", 3);
        }
    }
Ejemplo n.º 8
0
    void Start()
    {
        initColor = panelBackdrop.color;

        thisWriter = GetComponent <NarrationWriter>();
    }
Ejemplo n.º 9
0
 void Awake()
 {
     thisWriter = GetComponent <NarrationWriter>();
 }