Beispiel #1
0
 public void CreateBots(int how, bool isCreate)
 {
     if (isCreate)
     {
         for (int i = 0; i < how; i++)
         {
             _spawn = _spawnPlayer.spawnPositionBots(ID_bots).position;
             ID_bots++;
             var   bots = PhotonNetwork.Instantiate("Bot", _spawn, Quaternion.identity);
             float s    = i;
             bots.GetComponent <nameNick>().setName("Bot " + s, Color.red);
             listPlayer.Add(bots);
         }
     }
 }