コード例 #1
0
    void Start()
    {
        playerFocus = ScoreKeeper.playerAlive.transform;
        me          = GetComponent <Raimi>();

        /*
         * cruise = true;
         *      thrust = thrustInit;
         *
         * //get selection from Hud Tracker
         *
         *
         *      if (HUD.activeTarget != null) {
         *
         *              selected = HUD.activeTarget.transform;
         *              targetID.text = selected.name.ToString ();
         *      }
         */

        if (navGyro == null)
        {
            navGyro = new GameObject("navGyro Null");
            navGyro.transform.position = transform.position;
            navGyro.transform.SetParent(transform);
        }
    }
コード例 #2
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);
        }
    }
コード例 #3
0
    void Disabled()
    {
        beDisabled();

        AllClear();

        //Raimi Commentary
        Raimi.GetReactions().Fiero(string.Format("<b><i>{0}</i></b> has been disabled! Minimal Casualties", gameObject.name));

        //disabled = true;

        //        DialogueBox.PrintToDBox(gameObject.name + ": DISABLED", gameObject);

        if (drop == true && winDrop != null)
        {
            Instantiate(winDrop, transform.position, transform.rotation);
            drop = false;
        }
    }
コード例 #4
0
 void Awake()
 {
     me = GetComponent <Raimi>();
 }