public override void OnInspectorGUI()
 {
     if (Application.isPlaying)
     {
         EditorGUILayout.BeginHorizontal();
         if (GUILayout.Button("Play all Forward"))
         {
             _target.PlayForwardForce();
         }
         if (GUILayout.Button("Play all Reverse"))
         {
             _target.PlayReverseForce();
         }
         if (GUILayout.Button("Stop All"))
         {
             _target.StopAll();
         }
         EditorGUILayout.EndHorizontal();
     }
     else
     {
         EditorGUILayout.HelpBox("Some buttons will appear when running.", MessageType.Info);
     }
     DrawDefaultInspector();
 }
 static int PlayForwardForce(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         BCTweenGroup obj = (BCTweenGroup)ToLua.CheckObject <BCTweenGroup>(L, 1);
         obj.PlayForwardForce();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }