Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        //子オブジェクト取得
        band     = transform.FindChild("band").GetComponent <Image>();
        bandText = transform.FindChild("bandText").GetComponent <Text>();

        waveManagement = GameObject.Find("Wave").GetComponent <yWaveManagement>();
        time           = GameObject.Find("Time").GetComponent <yTime>();

        band.color     = new Color(band.color.r, band.color.g, band.color.b, 0);
        bandText.color = new Color(bandText.color.r, bandText.color.g, bandText.color.b, 0);
        startText      = "START Wave " + "1 / 5";
        bandText.text  = startText;
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        //子オブジェクト取得
        band     = transform.FindChild("band").GetComponent <Image>();
        bandText = transform.FindChild("bandText").GetComponent <Text>();

        waveManagement = GameObject.Find("Wave").GetComponent <yWaveManagement>();
        time           = GameObject.Find("Time").GetComponent <yTime>();

        band.color     = new Color(band.color.r, band.color.g, band.color.b, 0);
        bandText.color = new Color(bandText.color.r, bandText.color.g, bandText.color.b, 0);

        StartCoroutine("MaxWave");
    }
Exemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        csv      = GameObject.Find("Reference").GetComponent <yCsvRender>();
        bandFade = GameObject.Find("Canvas/Band").GetComponent <yBandFade>();
        _time    = GameObject.Find("Time").GetComponent <yTime>();

        EnemyNumber((int)topRow.Wave);

        EnemyTime((int)topRow.Time);
        EnemyPos((int)topRow.Pos);
        EnemyID((int)topRow.ID);
        EnemyHP((int)topRow.HP);
        number      = enemyNumber[0];
        wholeNumber = enemyNumber[0] + enemyNumber[1] + enemyNumber[2];
        print(wholeNumber);
        StartCoroutine("BossAppearance");
    }
Exemplo n.º 4
0
    // Use this for initialization
    void Start()
    {
        csv      = GameObject.Find("Reference").GetComponent <yCsvRender>();
        bandFade = GameObject.Find("Canvas/Band").GetComponent <yBandFade>();
        _time    = GameObject.Find("Time").GetComponent <yTime>();
        vFade    = GameObject.Find("Vignette").GetComponent <yVignetteFade>();

        MaxWave((int)topRow.Wave);     //最大Wave取得
        EnemyNumber((int)topRow.Wave); //WaveごとのEnemyの数
        EnemyTime((int)topRow.Time);   //Enemyが出てくる時間
        EnemyPos((int)topRow.Pos);     //Enemyが出てくる場所
        EnemyID((int)topRow.ID);       //どのEnemyか
        EnemyHP((int)topRow.HP);       //EnemyのHP
        number = enemyNumber[0];
        for (int i = 0; i < maxWave; i++)
        {
            wholeNumber += enemyNumber[i];
        }
        print(maxWave);
        StartCoroutine("BossAppearance");
    }