public void Hit(ItemBase itemBase) { Dictionary <Vector2, CubeBase> result = itemBase.GetAllShowDic(); foreach (var item in result) { CubeBase self = m_CubeBaseDic[item.Key]; if (self.IsShow) { self.CreatReplace(); } } }
public void CopyCubeBase(ItemBase itemBase) { Dictionary <Vector2, CubeBase> result = itemBase.GetAllShowDic(); foreach (var item in result) { CubeBase self = m_CubeBaseDic[item.Key]; if (self.IsShow) { //self.SetColor(item.Value.Color); self.SetColorAnimation(item.Value.Color); } else { self.SetIsShow(true); self.SetColor(item.Value.Color); } } }