예제 #1
0
 // Use this for initialization
 void Start()
 {
     moveOnMouse = MoveOnMouse.FindObjectOfType <MoveOnMouse> ();
     mainCamera  = GameObject.FindGameObjectWithTag("MainCamera");
     aSync       = ASyncLoadScript.FindObjectOfType <ASyncLoadScript> ();
     //levelManager = LevelManager.FindObjectOfType<LevelManager>();
     //GameObject playerShip = GetComponent<BoxCollider>();
 }
예제 #2
0
    void Start()
    {
        var aSource = GetComponents <AudioSource> ();

        typeWriter1 = aSource [0];

        typeWriter2 = aSource [1];

        typeWriter3 = aSource [2];

        levelmanager = LevelManager.FindObjectOfType <LevelManager> ();

        aSync = ASyncLoadScript.FindObjectOfType <ASyncLoadScript> ();

        cycle = 0;

        yesButton.SetActive(false);

        noButton.SetActive(false);

        killButton.SetActive(false);

        textComp = GetComponent <Text> ();

        AImessage = AIComp.text;

        //AlienTextBox = GetComponent<Text> ();

        message = "We received your Distress Beacon, what can I do to help?";



        textComp.text = "";

        AImessage = "Thank you Commander. We have come under attack by Pirates and wont survive much longer! If you destroy them we will pay you handsomly!";



        //CHOICES STRINGS

        yesString = "They won't bother you soon enough!!";

        noString = "It is not my job to watch your back!";

        killString = "Pirates are the least of your concerns!";



        SecondaryMessage = SecondaryTextBox.text;

        SecondaryTextBox.text = "";

        StartCoroutine(TypeText());
    }