public void AddObject(string objectName) { lock (targetingLock) { currentObjectName = objectName; } api.AskForTarget(); }