private void InitializeInventory(GameMode mode, BODY_PART part) { currentMode = mode; currentbodyPart = part; RefreshInventory(); }
public override void Draw() { base.Draw(); mesh = ScriptableGUIUtils.DrawObjectField("Mesh", mesh); itemObject = EditorGUILayout.ObjectField(itemObject, typeof(GameObject), false) as GameObject; /* material = ScriptableGUIUtils.DrawObjectField("Material", material);*/ gender = (Gender)ScriptableGUIUtils.DrawField("GENDER", gender); bodyPart = (BODY_PART)ScriptableGUIUtils.DrawField("BODYPART", bodyPart); gameMode = (GameMode)ScriptableGUIUtils.DrawField("GameMode", gameMode); Inventory_frameColor = ScriptableGUIUtils.DrawField("Inventory_FrameColor", Inventory_frameColor); Inventory_image = ScriptableGUIUtils.DrawObjectField("Inventory_icon", Inventory_image); ScriptableGUIUtils.DrawList("ItemVariants", variants); ScriptableGUIUtils.DrawList <BodypartToDisable>("BODYPART TO DISABLE", partsToDisable, BodypartToDisable.body_body1); isDefault = ScriptableGUIUtils.DrawField("isDefault?", isDefault); }
public void BodyPartChanged(BODY_PART part) { currentbodyPart = part; RefreshInventory(); }