Пример #1
0
    public void SpawnMinions()
    {
        MinionMoving[] group = new MinionMoving[4];
        Debug.Log("F**k off ass hole" + m_Spawnpoint.Length.ToString());
        int cate    = Random.Range(0, 4);
        int counter = 0;

        CalMinions();
        for (int y = 0; y < 4; y++)
        {
            for (int x = 0; x < 8; x++)
            {
                if (CurrentWave[x, y] == 1)
                {
                    MinionManger temp = new MinionManger();
                    temp.m_Instance = Instantiate(m_Minion_Pink, m_Spawnpoint[x].transform.position + new Vector3(0, 0, 5.5f * y), Quaternion.identity) as GameObject;
                    temp.Setup();
                    group[counter] = temp.m_Movement;
                    counter++;
                }
            }
        }
        for (int u = 0; u < 4; u++)
        {
            group[u].m_group = group;
        }
    }
Пример #2
0
 public void SpawnMinions()
 {
     MinionMoving[] group = new MinionMoving[4];
     Debug.Log("F**k off ass hole"+m_Spawnpoint.Length.ToString());
     int cate = Random.Range(0, 4);
     int counter = 0;
     CalMinions();
     for (int y = 0; y < 4; y++)
     {
         for (int x = 0; x < 8; x++)
         {
             if (CurrentWave[x, y] == 1)
             {
                MinionManger temp = new MinionManger();
                 temp.m_Instance=    Instantiate(m_Minion_Pink, m_Spawnpoint[x].transform.position+new Vector3(0,0,5.5f* y), Quaternion.identity) as GameObject;
                 temp.Setup();
                 group[counter] = temp.m_Movement;
                 counter++;
             }
         }
     }
     for (int u = 0; u<4; u++)
     {
         group[u].m_group = group;
     }
 }