void OnActiveToolChanged() { var collider = target as Collider2D; if (EditorTools.EditorTools.IsActiveTool(this) && IsAvailable() && collider) { polyUtility.StartEditing(collider); } }
void OnActiveToolChanged() { if (EditorTools.EditorTools.IsActiveTool(this)) { m_PolyUtility.StartEditing(target as Collider2D); } }
void OnActiveToolChanged() { // We don't support multi-selection editing if (EditorTools.EditorTools.IsActiveTool(this) && target != null) { polyUtility.StartEditing(target as Collider2D); } }
protected override void OnEditStart() { // We don't support multiselection editing if (target == null) { return; } m_PolyUtility.StartEditing(target as Collider2D); }
void TryBeginEditing() { var collider = target as EdgeCollider2D; if (EditorTools.EditorTools.IsActiveTool(this) && IsAvailable() && collider) { m_PolyUtility.StartEditing(target as Collider2D); m_AdjacentEdgeUtility.StartEditing(target as EdgeCollider2D); } }
protected override void OnEditStart() { m_PolyUtility.StartEditing(target as Collider2D); }