private void UpdateSprite() { if (!procedimentoImage) { CreateImageChild(); } procedimentoImage.sprite = ProcedimentoSpriteDatabase.SpriteOf(procedimento); procedimentoImage.preserveAspect = true; }
public void Selecionar(LinkedListNode <Procedimento> nodoAlvo) { nodoSelecionado = nodoAlvo; imageProcedimento.sprite = ProcedimentoSpriteDatabase.SpriteOf(nodoAlvo.Value); caixaDeTexto.text = nodoAlvo.Value.Nome(); if (QuandoValorMudar != null) { QuandoValorMudar(); } }
private void Awake() { if (Instance == null) { Instance = this; transform.parent = null; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } }
private void UpdateSprite() { image.sprite = ProcedimentoSpriteDatabase.SpriteOf(procedimento); image.preserveAspect = true; }