Ejemplo n.º 1
0
    void Update()
    {
        if (itsDataMapIcon.itsRevealFogOfWar)
        {
            if (itsMapSystem == null)
            {
                itsMapSystem = KGFAccessor.GetObject <KGFMapSystem>();
            }
            if (itsMapSystem != null)
            {
                itsMapSystem.RevealFogOfWarAtPoint(itsTransformCache.position);
            }
        }

        if (itsDataMapIcon.itsBlinking)
        {
            float aBlinkValue = KGFUtility.PingPong(Time.time, 1, 0, 0, 0.6f);
            itsMaterial.color = new Color(itsDataMapIcon.itsColor.r, itsDataMapIcon.itsColor.g, itsDataMapIcon.itsColor.b, aBlinkValue);
        }
    }