Ejemplo n.º 1
0
    public void SetHover(Renderer obj)
    {
        outlineColor = defaultOutlineColor;

        if (currentObj != null)
        {
            currentObj.gameObject.layer = LayerMask.NameToLayer("Interactable");
        }
        currentObj = obj;

        try {
            CustomGlowColor gc = currentObj.GetComponent <CustomGlowColor>();
            outlineColor = gc.glowColor;
        } catch (System.Exception e) {
            DisposableVariables.Exceptions(e);
        }

        if (currentObj != null)
        {
            currentObj.gameObject.layer = LayerMask.NameToLayer("InteractableHover");
        }
    }
Ejemplo n.º 2
0
 void Start()
 {
     zone = transform.parent.parent.GetComponentInChildren <FoxZone>();
     glow = GetComponent <CustomGlowColor>();
 }