Пример #1
0
    // Use this for initialization
    void Start()
    {
        timer_1          = deltaTime_1;
        timer_2          = deltaTime_2;
        timer_3          = deltaTime_3;
        enemyPlasmaShots = FindObjectOfType <ListParticle>(); // Вообще-то не то

        for (int i = 0; i < weapon_weak.Count; ++i)
        {
            plasma_weak.Add(new PlasmaShot());
        }
        for (int i = 0; i < weapon_average.Count; ++i)
        {
            plasma_average.Add(new PlasmaShot());
        }
        for (int i = 0; i < plasma_strong.Count; ++i)
        {
            plasma_strong.Add(new PlasmaShot());
        }
    }