void Awake() { collection = Collection.instance; artifactInfoManager = ArtifactInfoManager.instance; button = GetComponent <Button>(); button.onClick.AddListener(() => artifactInfoManager.OpenArtifactInfo(GetComponentInChildren <Text>().text.ToString())); }
void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } }