コード例 #1
0
        public void SetSelectedSprite(SuperHeroParts selectedSprite)
        {
            selectedPart = selectedSprite;

            if (selectedSprite != null)
            {
                spriteIndex             = 0;
                selected_Sprite.enabled = true;
                selected_Sprite.sprite  = selectedSprite.creatorSprite;
            }
        }
コード例 #2
0
 public SelectedSuperHero(SuperHeroSettings superHeroSetting)
 {
     this.head = superHeroSetting.heads[Random.Range(0, superHeroSetting.heads.Count)];
     this.body = superHeroSetting.bodies[Random.Range(0, superHeroSetting.bodies.Count)];
     this.leg  = superHeroSetting.legs[Random.Range(0, superHeroSetting.legs.Count)];
 }