Example #1
0
 // Use this for initialization
 void Start()
 {
     backgroundmusic = GameObject.FindGameObjectWithTag("bgm");
     response        = GameObject.FindGameObjectWithTag("responseScreen");
     responseScript  = response.GetComponent <TypeOutScript>();
     showTitle();
 }
Example #2
0
 void Start()
 {
     conquerScript   = conqueredText.GetComponent <TypeOutScript>();
     thankScript     = thankText.GetComponent <TypeOutScript>();
     developerScript = developerText.GetComponent <TypeOutScript>();
     showTexts();
 }
Example #3
0
 private void Start()
 {
     typeout         = gameObject.GetComponent <TypeOutScript>();
     gameOverMessage = new List <string>();
     addMessages();
     RandomizeMessage();
 }
    void Start()
    {
        animation          = GetComponent <Animation>();
        characterObject    = GameObject.Find("Knight");
        characterRigidbody = GetComponent <Rigidbody>();

        BreathScript    = breathBar.GetComponent <breathScript>();
        HealthScript    = healthBar.GetComponent <healthScript>();
        responseScript  = responseScreen.GetComponent <TypeOutScript>();
        audios          = characterObject.GetComponents <AudioSource>();
        rend            = characterObject.GetComponent <Renderer>();
        escapeTransform = escapeZone.GetComponent <Transform>();
        walking         = audios[0];
        running         = audios[1];
        damagetaken     = audios[2];
    }