// Start is called before the first frame update void Start() { memberTemplate = GetComponentInChildren <DeckListMember>(true); memberTemplate.gameObject.SetActive(false); activeMembers = new List <DeckListMember>(); visualizer.gameObject.SetActive(false); }
public void OnMouseOver(DeckListMember member) { if (member.represents != null) { visualizer.gameObject.SetActive(true); visualizer.ShowCardData(member.represents); visualizer.transform.position = member.transform.position - new Vector3(0, 12f, 0); } }
private void CreateGearListing(string text) { DeckListMember newMember = Instantiate(memberTemplate, transform); newMember.GetComponent <Text>().text = text; newMember.gameObject.SetActive(true); newMember.gameObject.name = text; //newMember.represents = card; //newMember.OnMouseOver += OnMouseOver; //newMember.OnMouseLeave += OnMouseLeave; activeMembers.Add(newMember); }
private void Start() { memberTemplate = GetComponentInChildren <DeckListMember>(true); memberTemplate.gameObject.SetActive(false); }