Example #1
0
    private void InitializeInventory(GameMode mode, BODY_PART part)
    {
        currentMode     = mode;
        currentbodyPart = part;

        RefreshInventory();
    }
Example #2
0
        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);
        }
Example #3
0
 public void BodyPartChanged(BODY_PART part)
 {
     currentbodyPart = part;
     RefreshInventory();
 }