void Start() { m_isInsideTheFiel = false; closePanel.onClick.AddListener(CloseWellInfoPopup); cameraInputControl = FindObjectOfType <CameraWorldInputControl>(); EventManager.instance.addEventListener(WorldLevelEvent.ON_CAMERA_TO_POINT, this.gameObject, "OnCameraToPoint"); EventManager.instance.addEventListener(WorldLevelEvent.ON_BACK_TO_WORLD, this.gameObject, "OnBackToWorldLevel"); goFilter.SetActive(true); }
// Use this for initialization void Start() { m_wellDotInfoList = new GenericList <WellDotInfo> (); cameraWorldInputControl = FindObjectOfType <CameraWorldInputControl>(); NamePanel.gameObject.SetActive(false); myCollider = this.GetComponent <BoxCollider> (); m_allWellCategories = new List <WellCategory> (); m_allWellCategories.AddRange((WellCategory[])System.Enum.GetValues(typeof(WellCategory))); GenerateDots(); EventManager.instance.addEventListener(WorldLevelEvent.ON_APPLY_FILTERS_TO_WELL, this.gameObject, "OnApplyFilter"); }