public static void SetIcon(this GameObject gObj, IconManager.Icon icon) { if (icon == IconManager.Icon.None) { IconManager.RemoveIcon(gObj); } else { IconManager.SetIcon(gObj, icon); } }
public static void SetIcon(GameObject _object, IconManager.Icon _icon) { if (_icon == IconManager.Icon.None) { IconManager.RemoveIcon(_object); } else { IconManager.SetIcon(_object, _icon); } }
// Token: 0x06000418 RID: 1048 RVA: 0x0001FFB0 File Offset: 0x0001E1B0 public static void SetIcon(GameObject obj, IconManager.Icon icon) { if (IconManager.guicontent_1 == null) { IconManager.guicontent_1 = IconManager.smethod_1("sv_icon_dot", "_pix16_gizmo", 0, 16); } if (icon == IconManager.Icon.None) { IconManager.RemoveIcon(obj); } else { IconManager.smethod_0(obj, IconManager.guicontent_1[(int)icon].image as Texture2D); } }
public override void OnInspectorGUI() { if (operationMode == Mode.EnableEdit) { if (GUILayout.Button("Disable Edit")) { operationMode = Mode.DisableEdit; } namePrefix = EditorGUILayout.TextField("Name prefix", "WP"); positionAdder = EditorGUILayout.Vector3Field("Change Position", positionAdder); drawType = (DrawType)EditorGUILayout.EnumPopup("Icon Type", drawType); if (drawType == DrawType.Icon) { selectedIcon = (IconManager.Icon)EditorGUILayout.EnumPopup("Icons", selectedIcon); } else if (drawType == DrawType.LabelIcon) { selectedLabelIcon = (IconManager.LabelIcon)EditorGUILayout.EnumPopup("Label Icons", selectedLabelIcon); } if (GUILayout.Button("Reset Count")) { m_count = 0; } EditorGUILayout.LabelField(">>>> Right click for add waypoint <<<<<"); } else if (operationMode == Mode.DisableEdit) { if (GUILayout.Button("Enable Edit")) { operationMode = Mode.EnableEdit; } } }
public static void SetIcon(this GameObject gObj, IconManager.Icon icon) { IconManager.SetIcon(gObj, icon); }