﻿// Decompiled with JetBrains decompiler
// Type: ClearSightMask
// Assembly: Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 19851F1B-4780-4223-BA01-2C20F2CD781E
// Assembly location: C:\Users\CGA Computer\Desktop\LEGO Universe Stuff\LOCO Server\Unity Web Player Extractor\Saved Files\LOCO Server.unity3d_unpacked\Assembly-CSharp.dll

using UnityEngine;

public class ClearSightMask : MonoBehaviour
{
  [HideInInspector]
  public float GrowSpeed;
  [HideInInspector]
  public float Size;
  public int _defaultRenderQueue;
  private float _targetSize;

  public int RenderQueue { get; private set; }

  public bool IsActivated
  {
    get
    {
      return ((Component) this).get_transform().get_localScale().x == (double) this.Size;
    }
  }

  public bool IsDeactivated
  {
    get
    {
      return ((Component) this).get_transform().get_localScale().x == 0.0;
    }
  }

  public ClearSightMask()
  {
    base.\u002Ector();
  }

  private void Awake()
  {
    ((Component) this).get_transform().set_localScale(new Vector3(0.0f, 0.0f, 0.0f));
    this._targetSize = 0.0f;
  }

  public void Activate(bool activate)
  {
    this._targetSize = !activate ? 0.0f : this.Size;
  }

  private void OnDrawGizmosSelected()
  {
  }

  public void SetRenderQueue(int renderQueue)
  {
    foreach (Material material in ((Component) this).get_renderer().get_materials())
      material.set_renderQueue(renderQueue);
    this.RenderQueue = renderQueue;
  }

  public void UpdateTargetSize(float size)
  {
    this.Size = size;
    this._targetSize = size;
  }
}
