Пример #1
0
        private void OnMovePilesTopFinished()
        {
            GameObject    obj   = m_ElementList[m_iCurrentOptionIndex + 1].m_ObjRoot;
            TweenPosition tween = obj.GetComponent <TweenPosition>();

            Destroy(tween);
            TriggerToShowDisableOption(m_ElementList[m_iCurrentOptionIndex + 1].m_ObjOptionRoot, () =>
            {
                m_ElementList[m_iCurrentOptionIndex + 1].m_Materials.mainTexture = ResourceManager.Instance.LoadBuildInResource <Texture2D>(m_strEmptyTextureName,
                                                                                                                                            AssetType.Texture);

                m_UIWindow.OnEnableOption(m_strCuringCaculateName);
            });
        }
Пример #2
0
        private void OnMovePilesTopFinished()
        {
            GameObject    obj   = m_ElementList[m_iMovingPilesIndex].m_ObjRoot;
            TweenPosition tween = obj.GetComponent <TweenPosition>();

            Destroy(tween);

            m_UIWindow.OnEnableOption(m_strCuringCaculateName);
            m_strCuringCaculateName = string.Empty;
            TriggerToShowDisableOption(m_ElementList[m_iMovingPilesIndex].m_OptionRoot, () =>
            {
                m_ElementList[m_iMovingPilesIndex].m_Materials.mainTexture = ResourceManager.Instance.LoadBuildInResource <Texture2D>(m_strEmptyTextureName,
                                                                                                                                      AssetType.Texture);
                m_bIsMovingPiles = false;
                if (m_iLeftRedFlower <= 0)
                {
                    //trigger to end game
                    m_UIWindow.OnLose();
                    m_bIsFinished = true;
                    m_DiffMgr.ReportEvent(RegularityGameDifficultyManager.RegularityEventType.Lose);
                }
            });
        }