void DoTheMethod() { var go = Fsm.GetOwnerDefaultTarget(gameObject); if (go == null) { return; } theScript.RemoveEnemy(); }