Example #1
0
 public void OnClick()
 {
     if (_passInfo == null)
     {
         _passInfo = GameObject.FindWithTag("ShowPasswordInfomation").GetComponent <PassInfo>();
     }
     _passInfo.Target = gameObject;
 }
Example #2
0
 private void Start()
 {
     _passInfo = GameObject.FindWithTag("ShowPasswordInfomation").GetComponent <PassInfo>();
     Data      = GetComponent <ItemData>();
     Button.onClick.AddListener(OnClick);
 }