public void CreateBacteria(Vector2 location, Vector2 direction) { BacteriaBubble bacteria = new BacteriaBubble(location, direction); bacteriaContainer_.AddChild(bacteria); bacteria.play("idle"); bacterias_.Add(bacteria); totalBacterialCreated_++; }
public void HandleGotBacteria(BacteriaBubble bacteria) { bacteriaContainer_.RemoveChild(bacteria); bacterias_.Remove(bacteria); dyingBacteriaHolder_.AddChild(bacteria); dyingBacterias_.Add(bacteria); bacteria.play("pop"); FSoundManager.PlaySound("bacteria_pop"); }