/// <summary> /// Sets the icon that is to be displayed. /// </summary> /// <param name="state"></param> public void SetIconActive(ActiveIcon state) { switch (state) { case ActiveIcon.Icon2D: { gameObject.SetActive(true); Icon.enabled = true; Icon3D.enabled = false; break; } case ActiveIcon.Icon3D: { gameObject.SetActive(true); Icon.enabled = false; Icon3D.enabled = true; break; } default: { Icon.enabled = false; Icon3D.enabled = false; gameObject.SetActive(false); break; } } }
void ReleaseDesignerOutlets() { if (ActiveIcon != null) { ActiveIcon.Dispose(); ActiveIcon = null; } if (Arrow != null) { Arrow.Dispose(); Arrow = null; } if (Email != null) { Email.Dispose(); Email = null; } if (NickName != null) { NickName.Dispose(); NickName = null; } }