示例#1
0
 private void StripFrom(EClothingType ctype)
 {
     if (Worn.ContainsKey(ctype))
     {
         // We're wearing something
         GameObject.Destroy(Worn[ctype].Instance);
         Worn[ctype].Instance = null;
         Worn.Remove(ctype);
     }
 }
示例#2
0
        void OpenDrawer(EClothingType drawer)
        {
            bool success = WardrobeManager.SetView(drawer);

            if (success)
            {
                // If this failed (i.e. we don't have any clothing of that type), don't change modes
                this.CurrentState = EUIState.DRAWER;
                Seamstress.OpenDrawer();
            }
            MarkActivity();
        }
示例#3
0
 public bool SetView(EClothingType drawer)
 {
     if (this.Worn.ContainsKey(drawer))
     {
         // We're already wearing something from this drawer
         WardrobeSelection curr = Worn[drawer];
         this.CurrentSelection = new WardrobeSelection(curr.ClothingType.Value, curr.Index);
     }
     else
     {
         if (this.KnownClothingByType.ContainsKey(drawer))
         {
             this.CurrentSelection = new WardrobeSelection(drawer);
         }
     }
     RefreshView();
     return(CurrentSelection.Valid);
 }
示例#4
0
 public WardrobeSelection(EClothingType t, int i, GameObject inst)
 {
     this.ClothingType = t;
     this.Index        = i;
     this.Instance     = inst;
 }
示例#5
0
 public WardrobeSelection(EClothingType t, int i)
 {
     this.ClothingType = t;
     this.Index        = i;
     this.Instance     = null;
 }