Beispiel #1
0
        public void ListenShowTooltip(object param)
        {
            TooltipParameter p = param as TooltipParameter;

            ShowTooltipUseLocalKey(p.localKey, p.position);
            //ParameterPool.ReturnPool(p);
        }
Beispiel #2
0
    IEnumerator RoutineTooltip(Vector2 position)
    {
        yield return(new WaitForSecondsRealtime(tooltipTime));

        if (isDownStarted)
        {
            Debug.LogFormat("Tooltip : {0}", localKey);
            TooltipParameter p = ParameterPool.GetParameter <TooltipParameter>();
            p.localKey = localKey;
            p.position = position + Vector2.up * 20;
            GlobalEventQueue.EnQueueEvent(DefaultEvent.ShowTooltip, p);
        }
    }