Exemple #1
0
 private void ButtonClicked(UI_Container _container, int _moduleIndex, object _data = null)
 {
     if (_moduleIndex == openSelectMatContainerModuleIndex && ((StrengthReturnData)_data).type == StrengthSubType.Material && selectTarget == false)
     {
         return;
     }
     _container.CallContents(_moduleIndex, _data);
 }
        public override void SetUI(UI_Container _container)
        {
            string basicPath = string.Empty;

#if UNITY_STANDALONE_WIN || UNITY_EDITOR
            basicPath = Application.streamingAssetsPath;
#else
            basicPath = "jar:file://" + Application.dataPath + "!/assets";
#endif
            if (ts)
            {
                ts.text = basicPath + DataPath.defaultPath;
            }
            background.sprite = backgroundImage;

            if (loginButton.triggers.Count <= 0)
            {
                EventTrigger.Entry entry = new EventTrigger.Entry();
                entry.eventID = EventTriggerType.PointerUp;
                entry.callback.AddListener((eventData) => { _container.CallContents(0); });
                loginButton.triggers.Add(entry);
            }
        }
 private void ClickedButton(UI_Container _container, int _moduleIndex, object _data = null)
 {
     _container.CallContents(_moduleIndex, _data);
 }
 public void ClickedButton(UI_Container _contianer, int _moduleIndex, object _data = null)
 {
     Debug.LogError("Click Button!");
     _contianer.CallContents(_moduleIndex, _data);
 }