protected override void Refresh(bool p_force = true) { if (p_force || m_windowInformation.Ropes != null) { Rope2D.CleanUselessRopes(); GameObject v_parentTransform = GameObject.Find("RopesContainer"); if (v_parentTransform != null) { m_windowInformation.RopeParent = v_parentTransform.transform; } List <TackRope> v_tackList = new List <TackRope>(RopeEditorInternalUtils.GetAssetsOfType <TackRope>(".prefab")); m_windowInformation.SelectedRopeIndex = 0; m_windowInformation.Ropes = new List <Rope2D>(); foreach (TackRope v_tackRope in v_tackList) { if (v_tackRope != null) { m_windowInformation.Ropes.Add(v_tackRope); } } if (p_force && m_selectedObjects != null && m_windowInformation.PickSelectedObjects) { m_selectedObjects.Clear(); } FillSelectedObjects(); } }
protected virtual void Refresh(bool p_force = true) { if (p_force || (m_windowInformation.Ballons != null || m_windowInformation.Ropes != null)) { m_windowInformation.Ballons = new List <BalloonProperty>(RopeEditorInternalUtils.GetAssetsOfType <BalloonProperty>(".prefab")); m_windowInformation.Ropes = new List <TackRope>(RopeEditorInternalUtils.GetAssetsOfType <TackRope>(".prefab")); m_windowInformation.SelectedRopeIndex = 0; m_windowInformation.SelectedBallonIndex = 0; } }
protected virtual void Refresh(bool p_force = true) { if (p_force || m_windowInformation.Ropes != null) { GameObject v_parentTransform = GameObject.Find("RopesContainer"); if (v_parentTransform != null) { m_windowInformation.RopeParent = v_parentTransform.transform; } m_windowInformation.Ropes = new List <Rope2D>(RopeEditorInternalUtils.GetAssetsOfType <Rope2D>(".prefab")); m_windowInformation.SelectedRopeIndex = 0; } }