public void SetValue(HotspotGlowSettings _hotspotGlowSettings)
 {
     hotspotGlowSettings.pulseDuration      = _hotspotGlowSettings.pulseDuration;
     hotspotGlowSettings.minAlpha           = _hotspotGlowSettings.minAlpha;
     hotspotGlowSettings.maxAlpha           = _hotspotGlowSettings.maxAlpha;
     hotspotGlowSettings.maintainGlobalSync = _hotspotGlowSettings.maintainGlobalSync;
     hotspotGlowSettings.colour             = _hotspotGlowSettings.colour;
 }
Пример #2
0
    public void InitSettings(HotspotGlowSettings hotspotGlowSettings)
    {
        this.timePeriod         = hotspotGlowSettings.pulseDuration;
        this.minAlpha           = hotspotGlowSettings.minAlpha;
        this.maxAlpha           = hotspotGlowSettings.maxAlpha;
        this.maintainGlobalSync = hotspotGlowSettings.maintainGlobalSync;

        if (spriteRenderer)
        {
            spriteRenderer.color = hotspotGlowSettings.colour;
        }
        else if (image)
        {
            image.color = hotspotGlowSettings.colour;
        }
        else if (textMeshPro)
        {
            textMeshPro.color = hotspotGlowSettings.colour;
        }
    }