Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     x = transform.position.x;
     y = transform.position.y;
     z = transform.position.z;
     ShortcutExtensions.DOMove(transform, new Vector3(x, y + 20, z), Random.Range(0f, 3f));
 }
        protected unsafe virtual void DisplayTooltip(Vector3 worldPosition)
        {
            //IL_0006: Unknown result type (might be due to invalid IL or missing references)
            //IL_000b: Unknown result type (might be due to invalid IL or missing references)
            //IL_000e: Unknown result type (might be due to invalid IL or missing references)
            //IL_0087: Unknown result type (might be due to invalid IL or missing references)
            //IL_00a6: Unknown result type (might be due to invalid IL or missing references)
            //IL_00c2: Unknown result type (might be due to invalid IL or missing references)
            //IL_00d0: Unknown result type (might be due to invalid IL or missing references)
            Vector3 position = this.get_transform().get_position();

            worldPosition.z = ((IntPtr)(void *)position).z;
            TooltipWindowParameters parameters = m_parameters;
            Tweener tweenPosition = m_tweenPosition;

            if (tweenPosition != null)
            {
                TweenExtensions.Kill(tweenPosition, false);
            }
            Tweener tweenAlpha = m_tweenAlpha;

            if (tweenAlpha != null)
            {
                TweenExtensions.Kill(tweenAlpha, false);
            }
            this.get_gameObject().SetActive(true);
            m_tweenAlpha = TweenSettingsExtensions.SetEase <TweenerCore <float, float, FloatOptions> >(DOTween.To(new DOGetter <float>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), new DOSetter <float>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), 1f, (1f - alpha) * parameters.openDuration), parameters.openEase);
            Transform transform = this.get_transform();

            if (!m_opened)
            {
                transform.set_position(worldPosition);
                TweenSettingsExtensions.SetDelay <Tweener>(m_tweenAlpha, parameters.openDelay);
            }
            else
            {
                m_tweenPosition = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOMove(transform, worldPosition, parameters.moveDuration, false), parameters.moveEase);
            }
            m_opened = true;
        }