Exemplo n.º 1
0
    private void Awake()
    {
        s_art_manager = this;
        m_art         = new DefaultArtStyle();

        foreach (var art_config in ArtConfigurations)
        {
            var data = new Dropdown.OptionData(art_config.ArtConfigurationName);
            ArtStyleDropdown.options.Add(data);
        }

        ArtStyleDropdown.value = 0;
    }
Exemplo n.º 2
0
    private void Awake()
    {
        s_art_manager = this;
        m_art         = new DefaultArtStyle();
        m_art_configs = new List <ArtConfiguration>();

        foreach (var art_config in ArtConfigContainer.GetComponentsInChildren <ArtConfiguration>())
        {
            m_art_configs.Add(art_config);
            var data = new Dropdown.OptionData(art_config.ArtConfigurationName);
            ArtStyleDropdown.options.Add(data);
        }

        ArtStyleDropdown.value = 0;
    }
Exemplo n.º 3
0
 public void ChangeSkeleton(ArtStyle newArtStyle)
 {
     print("changeSkeletons" + newArtStyle);
     if (artStyle == newArtStyle)
     {
         return;
     }
     artStyle = newArtStyle;
     if (artStyle == ArtStyle.Anatomy)
     {
         ReplaceExistingSkeletons(SkeletonFBXMirrored);
     }
     else if (artStyle == ArtStyle.Organless)
     {
         ReplaceExistingSkeletons(OrganlessSkeleton);
     }
 }
Exemplo n.º 4
0
 public ArtStyleInfo(ArtStyle style, bool IsChecked)
 {
     ArtStyle       = style;
     this.IsChecked = IsChecked;
 }
Exemplo n.º 5
0
 void Awake()
 {
     s_art_manager = this;
     m_art         = new DefaultArtStyle();
 }