public void RemoveBot(EnemyBot bot) { if (!botList.Contains(bot)) { return; } botList.Remove(bot); }
public void AddBot(EnemyBot bot) { if (botList.Contains(bot)) { return; } botList.Add(bot); bot.SetTarget(targetTramsform); }
private void Update() { if (instance) { return; } instance = Instantiate(BotPrefab, transform.position, transform.rotation); instance.Initialize(SpawnParams); }