// HashSet<CcocoMakeupCategory> ValidPaintCategories // { // get // { // if (m_ValidPaintCategories == null) // m_ValidPaintCategories = new HashSet<CcocoMakeupCategory>(); // return m_ValidPaintCategories; // } // } void AddValidCategory(CocoMakeupCategory categoryType) { // if (!ValidPaintCategories.Contains(categoryType)) // { // ValidPaintCategories.Add(categoryType); // } }
private void OnPaintEnd(CocoMakeupCategory pCategory) { if (m_CurrControlExecutor == null) { return; } if (m_CurrControlExecutor.OnPaintEnd()) { PlayPaintEndEffect(); } }
protected virtual void OnClear(CocoMakeupCategory _category) { if (_category == CocoMakeupCategory.Eyebrow || _category == CocoMakeupCategory.Eyecolor) { CocoMakeupControlChange temp = (CocoMakeupControlChange)m_CurrControlExecutor; temp.ResetTexture(); } else { m_CurrControlExecutor.ClearPatting(); } PlayFaceEffect(); //m_CharacterMakeupData.RemoveItem(m_CurrControlExecutor.ItemData.belongCategoryData.type); //m_CharacterManager.SaveCharacterDress(m_CharacterManager.MainCharacter); }
private void OnPaint(Vector2 pScreenPos, CocoMakeupCategory pCategory) { if (m_CurrControlExecutor == null) { return; } bool inPainting = m_CurrControlExecutor.OnPaint(pScreenPos); if (inPainting) { PlayPaintEffect(); if (OnPaintCallback != null) { if (m_CurrItemData == null) { return; } string itemname = m_CurrItemData.Category.ToString() + "_" + m_CurrItemData.m_Index.ToString(); OnPaintCallback(itemname); } } }