void DoTheMethod() { var go = Fsm.GetOwnerDefaultTarget(gameObject); if (go == null) { return; } theScript.Move(vector.Value, speed.Value); }