Ejemplo n.º 1
0
 private void AddTexture_Click(object sender, RoutedEventArgs e)
 {
     if (_selectedCloth != null)
     {
         ClothesManager.Instance().AddClothTextures(_selectedCloth);
     }
 }
Ejemplo n.º 2
0
 private void SelectFirstPersonModel_Click(object sender, RoutedEventArgs e)
 {
     if (_selectedCloth != null)
     {
         ClothesManager.Instance().SetClothFirstPersonModel(_selectedCloth);
     }
     firstPersonModelPath.Text = !string.IsNullOrEmpty(_selectedCloth?.FirstPersonModelPath) ? _selectedCloth.FirstPersonModelPath : "Not selected...";
 }
Ejemplo n.º 3
0
 public static ClothesManager Instance()
 {
     return(_singleton ?? (_singleton = new ClothesManager()));
 }
Ejemplo n.º 4
0
 private void AddFemaleClothes_Click(object sender, RoutedEventArgs e)
 {
     ClothesManager.Instance().AddClothes(Sex.Female);
 }