public void DisplayNPC(NPC n) { Clear(); npc = n; npcName.text = n.FirstName + " " + n.LastName; npcPortrait.DisplayLayeredColoredSprite(npc.Portrait); }
public void DisplayCompany(Company c) { Clear(); company = c; companyName.text = company.name; logoDisplay.DisplayLayeredColoredSprite(company.logo); }
public void DisplayPart(Part part) { if (part != null) { part.OnManufactuerChange -= UpdateDisplay; } this.part = part; if (this.part != null) { if (this.part.Manufacturer != null) { Debug.Log(part.Manufacturer.logo); logoDisplay.DisplayLayeredColoredSprite(part.Manufacturer.logo); } this.part.OnManufactuerChange += UpdateDisplay; } }
public void SetSpecies(Species s) { portrait = new LayeredColoredSprite(1); portraitDisplay.DisplayLayeredColoredSprite(portrait); layer1Sprites.Clear(); layer1Sprites.AddRange(s.portraitRange); layerColors.Clear(); layerColors.AddRange(s.SpeciesColor()); layer1Index = UnityEngine.Random.Range(0, layer1Sprites.Count - 1); color1Index = UnityEngine.Random.Range(0, layerColors.Count - 1); CycleLayer(); CycleColor(); }
private void Start() { logo = new LayeredColoredSprite(3); logoDisplay.DisplayLayeredColoredSprite(logo); layer1Sprites = SpriteLoader.GetAllSymbolParts("Back"); layer2Sprites = SpriteLoader.GetAllSymbolParts("Mid"); layer3Sprites = SpriteLoader.GetAllSymbolParts("Front"); layer1Index = UnityEngine.Random.Range(0, layer1Sprites.Count - 1); layer2Index = UnityEngine.Random.Range(0, layer2Sprites.Count - 1); layer3Index = UnityEngine.Random.Range(0, layer3Sprites.Count - 1); color1Index = UnityEngine.Random.Range(0, layerColors.Count - 1); color2Index = UnityEngine.Random.Range(0, layerColors.Count - 1); color3Index = UnityEngine.Random.Range(0, layerColors.Count - 1); CycleLayer(1); CycleLayer(2); CycleLayer(3); CycleColor(1); CycleColor(2); CycleColor(3); }