Exemplo n.º 1
0
        public void OnPointerHoldStart()
        {
            ArtifactDetailWindow componentInParent = (ArtifactDetailWindow)((Component)this).GetComponentInParent <ArtifactDetailWindow>();

            if (!Object.op_Inequality((Object)componentInParent, (Object)null))
            {
                return;
            }
            AbilityDetailWindow.SetBindAbility(this.mAbilityParam);
            componentInParent.OpenAbilityDetail();
        }
Exemplo n.º 2
0
        public void OpenAbilityDetail(GameObject obj)
        {
            AbilityParam dataOfClass = DataSource.FindDataOfClass <AbilityParam>(obj, (AbilityParam)null);

            if (dataOfClass != null)
            {
                AbilityDetailWindow.SetBindAbility(dataOfClass);
            }
            if (this.OnDetailOpen == null)
            {
                return;
            }
            this.OnDetailOpen.Invoke(obj);
        }