コード例 #1
0
 private void AddTexture_Click(object sender, RoutedEventArgs e)
 {
     if (_selectedCloth != null)
     {
         ClothesManager.Instance().AddClothTextures(_selectedCloth);
     }
 }
コード例 #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...";
 }
コード例 #3
0
 public static ClothesManager Instance()
 {
     return(_singleton ?? (_singleton = new ClothesManager()));
 }
コード例 #4
0
 private void AddFemaleClothes_Click(object sender, RoutedEventArgs e)
 {
     ClothesManager.Instance().AddClothes(Sex.Female);
 }