예제 #1
0
 public void RemoveBot(EnemyBot bot)
 {
     if (!botList.Contains(bot))
     {
         return;
     }
     botList.Remove(bot);
 }
예제 #2
0
 public void AddBot(EnemyBot bot)
 {
     if (botList.Contains(bot))
     {
         return;
     }
     botList.Add(bot);
     bot.SetTarget(targetTramsform);
 }
예제 #3
0
        private void Update()
        {
            if (instance)
            {
                return;
            }

            instance = Instantiate(BotPrefab, transform.position, transform.rotation);
            instance.Initialize(SpawnParams);
        }