Example #1
0
    // Start is called before the first frame update.
    void Start()
    {
        // Image references.
        back1 = GameObject.Find("Back1").GetComponent <Image>();
        back2 = GameObject.Find("Back2").GetComponent <Image>();
        back3 = GameObject.Find("Back3").GetComponent <Image>();

        girl01 = GameObject.Find("Girl01").GetComponent <Image>();
        girl02 = GameObject.Find("Girl02").GetComponent <Image>();
        girl03 = GameObject.Find("Girl03").GetComponent <Image>();

        girl11 = GameObject.Find("Girl11").GetComponent <Image>();
        girl12 = GameObject.Find("Girl12").GetComponent <Image>();
        girl13 = GameObject.Find("Girl13").GetComponent <Image>();

        girl21 = GameObject.Find("Girl21").GetComponent <Image>();
        girl22 = GameObject.Find("Girl22").GetComponent <Image>();
        girl23 = GameObject.Find("Girl23").GetComponent <Image>();

        girl31 = GameObject.Find("Girl31").GetComponent <Image>();
        girl32 = GameObject.Find("Girl32").GetComponent <Image>();
        girl33 = GameObject.Find("Girl33").GetComponent <Image>();

        girl41 = GameObject.Find("Girl41").GetComponent <Image>();
        girl42 = GameObject.Find("Girl42").GetComponent <Image>();
        girl43 = GameObject.Find("Girl43").GetComponent <Image>();

        StartImages();

        textnEvent = GameObject.Find("TextBoxText").GetComponent <TextnEvent>();
    }
Example #2
0
    // Start is called before the first frame update.
    void Start()
    {
        // Image references.
        back01 = GameObject.Find("Back01").GetComponent <Image>();
        back02 = GameObject.Find("Back02").GetComponent <Image>();
        back03 = GameObject.Find("Back03").GetComponent <Image>();
        back04 = GameObject.Find("Back04").GetComponent <Image>();
        back05 = GameObject.Find("Back05").GetComponent <Image>();

        back11 = GameObject.Find("Back11").GetComponent <Image>();
        back12 = GameObject.Find("Back12").GetComponent <Image>();
        back13 = GameObject.Find("Back13").GetComponent <Image>();
        back14 = GameObject.Find("Back14").GetComponent <Image>();
        back15 = GameObject.Find("Back15").GetComponent <Image>();

        back21 = GameObject.Find("Back21").GetComponent <Image>();
        back22 = GameObject.Find("Back22").GetComponent <Image>();
        back23 = GameObject.Find("Back23").GetComponent <Image>();
        back24 = GameObject.Find("Back24").GetComponent <Image>();
        back25 = GameObject.Find("Back25").GetComponent <Image>();

        back31 = GameObject.Find("Back31").GetComponent <Image>();
        back32 = GameObject.Find("Back32").GetComponent <Image>();
        back33 = GameObject.Find("Back33").GetComponent <Image>();
        back34 = GameObject.Find("Back34").GetComponent <Image>();
        back35 = GameObject.Find("Back35").GetComponent <Image>();

        back41 = GameObject.Find("Back41").GetComponent <Image>();
        back42 = GameObject.Find("Back42").GetComponent <Image>();
        back43 = GameObject.Find("Back43").GetComponent <Image>();
        back44 = GameObject.Find("Back44").GetComponent <Image>();
        back45 = GameObject.Find("Back45").GetComponent <Image>();

        girl01 = GameObject.Find("Girl01").GetComponent <Image>();
        girl02 = GameObject.Find("Girl02").GetComponent <Image>();
        girl03 = GameObject.Find("Girl03").GetComponent <Image>();
        girl04 = GameObject.Find("Girl04").GetComponent <Image>();
        girl05 = GameObject.Find("Girl05").GetComponent <Image>();

        girl11 = GameObject.Find("Girl11").GetComponent <Image>();
        girl12 = GameObject.Find("Girl12").GetComponent <Image>();
        girl13 = GameObject.Find("Girl13").GetComponent <Image>();
        girl14 = GameObject.Find("Girl14").GetComponent <Image>();
        girl15 = GameObject.Find("Girl15").GetComponent <Image>();

        girl21 = GameObject.Find("Girl21").GetComponent <Image>();
        girl22 = GameObject.Find("Girl22").GetComponent <Image>();
        girl23 = GameObject.Find("Girl23").GetComponent <Image>();
        girl24 = GameObject.Find("Girl24").GetComponent <Image>();
        girl25 = GameObject.Find("Girl25").GetComponent <Image>();

        girl31 = GameObject.Find("Girl31").GetComponent <Image>();
        girl32 = GameObject.Find("Girl32").GetComponent <Image>();
        girl33 = GameObject.Find("Girl33").GetComponent <Image>();
        girl34 = GameObject.Find("Girl34").GetComponent <Image>();
        girl35 = GameObject.Find("Girl35").GetComponent <Image>();

        girl41 = GameObject.Find("Girl41").GetComponent <Image>();
        girl42 = GameObject.Find("Girl42").GetComponent <Image>();
        girl43 = GameObject.Find("Girl43").GetComponent <Image>();
        girl44 = GameObject.Find("Girl44").GetComponent <Image>();
        girl45 = GameObject.Find("Girl45").GetComponent <Image>();

        StartImages();

        textnEvent = GameObject.Find("TextBoxText").GetComponent <TextnEvent>();
    }