Esempio n. 1
0
 void ClickEgg()
 {
     if (Singleton <ObjManager> .GetInstance().MainPlayer != null)
     {
         if (GlobeVar.INVALID_GUID != m_Guid)
         {
             FlowerEggWindow.ShowFlowerEgg(m_Guid, FlowerEggWindow.ShowType.EGG);
         }
     }
 }
Esempio n. 2
0
 void OnClickEgg()
 {
     if (m_Guid == GlobeVar.INVALID_GUID)
     {
         return;
     }
     if (m_Guid == Singleton <ObjManager> .Instance.MainPlayer.GUID)
     {
         return;
     }
     FlowerEggWindow.ShowFlowerEgg(m_Guid, FlowerEggWindow.ShowType.EGG);
 }
Esempio n. 3
0
    private static void OnShowFlowerEgg(bool bSuccess, object param)
    {
        if (!bSuccess)
        {
            LogModule.ErrorLog("load FlowerEggRoot error");
            return;
        }

        if (null != FlowerEggWindow.Instance())
        {
            FlowerEggWindow.Instance().OpenFlowerEgg(m_sGuid, m_sType);
        }
    }
Esempio n. 4
0
    // 扔花
    public void onFlower()
    {
        if (m_playerGuid == GlobeVar.INVALID_GUID)
        {
            return;
        }

        if (m_playerGuid == Singleton <ObjManager> .Instance.MainPlayer.GUID)
        {
            return;
        }

        FlowerEggWindow.ShowFlowerEgg(m_playerGuid, FlowerEggWindow.ShowType.FLOWER);
    }
Esempio n. 5
0
 //砸蛋
 void PopMenuSendEgg()
 {
     FlowerEggWindow.ShowFlowerEgg(m_PopMenuSelectGuid, FlowerEggWindow.ShowType.EGG);
 }
Esempio n. 6
0
 //送花
 void PopMenuSendFlower()
 {
     FlowerEggWindow.ShowFlowerEgg(m_PopMenuSelectGuid, FlowerEggWindow.ShowType.FLOWER);
 }
Esempio n. 7
0
 public void ClearInfo()
 {
     m_tabItem = null;
     m_Parent  = null;
 }
Esempio n. 8
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="parent"></param>
 public void SetParent(FlowerEggWindow parent)
 {
     m_Parent = parent;
 }
Esempio n. 9
0
    public static FlowerEggItemSlot CreateItem(GameObject grid, GameObject resItem, string name, FlowerEggWindow parent)
    {
        GameObject curItem = Utils.BindObjToParent(resItem, grid, name);

        if (null == curItem)
        {
            return(null);
        }
        curItem.SetActive(true);
        FlowerEggItemSlot curItemComponent = curItem.GetComponent <FlowerEggItemSlot>();

        if (null == curItemComponent)
        {
            return(null);
        }
        curItemComponent.SetParent(parent);
        return(curItemComponent);
    }
Esempio n. 10
0
 void OnDestroy()
 {
     m_Instance = null;
 }
Esempio n. 11
0
 void Awake()
 {
     m_Instance = this;
 }