void DoTheMethod() { var go = Fsm.GetOwnerDefaultTarget(gameObject); if (go == null) { return; } direction = theScript.DirectionToPos(xPos.Value); }