void AttachWaypointList(object caller, EnemyV2RefEventArgs args) { if (args.enemy.waypoints_list == null) { args.enemy.waypoints_list = this; } }
void RemoveEnemyFromList(object caller, EnemyV2RefEventArgs args) { Debug.Log("Enemy ID " + args.enemy.gameObject.ToString() + " removed from list successfully!"); enemy_list.Remove(args.enemy); }
void AddEnemyToList(object caller, EnemyV2RefEventArgs args) { Debug.Log("Enemy ID " + args.enemy.gameObject.ToString() + " added to list successfully!"); enemy_list.Add(args.enemy); }