/// <summary> /// Show Axes /// </summary> /// <param name="size"></param> /// <param name="hideVert"></param> public static void ShowAxes(AxesBasedController target, bool hideVert = false) { StyleHelper.StandardSpace(); GUILayout.BeginVertical("Box"); GUILayout.Label("Axes", StyleHelper.labelStyle); StyleHelper.StandardSpace(); ShowAxis(ref target.axisX, "Horizontal ( Axis X )"); if (!hideVert) { ShowAxis(ref target.axisY, "Vertical ( Axis Y )"); } GUI.enabled = target.axisX.enabled || target.axisY.enabled; GUILayout.Space(10f); GUILayout.BeginHorizontal(); GUILayout.Space(10f); target.axesLag = EditorGUILayout.Toggle(target.axesLag, GUILayout.Width(15f)); GUILayout.Label("Lag", GUILayout.Width(25f)); GUI.enabled = target.axesLag; target.axesLagSpeed = EditorGUILayout.Slider(target.axesLagSpeed, 5f, 25f); GUI.enabled = true; GUILayout.EndHorizontal(); GUI.enabled = true; StyleHelper.StandardSpace(); GUILayout.EndVertical(); }
// HelperSetup public static void HelperSetup(ControllerBase target01, AxesBasedController target02) { controller = target01; abController = target02; }
// HelperSetup public static void HelperSetup(AxesBasedController target) { myTarget = target; }
// HelperSetup public static void HelperSetup(ControllerBase target01) { controller = target01; abController = target01 as AxesBasedController; }