Exemplo n.º 1
0
    //void OnGUI()
    //{
    //    if ((avatar == null || player == null) && Camera.main != null && player == null && ((ChannelTLMN)GameManager.Instance.selectedChannel).type == ChannelTLMN.ChannelType.Amateur)
    //    {
    //        if (!HeaderMenu.Instance.IsHidden) return;
    //        if (GameManager.Instance.ListPopup.Count > 0) return;
    //        if (GameModelTLMN.CurrentState >= GameModelTLMN.EGameState.deal) return;
    //        if (GameModelTLMN.YourController == null || GameModelTLMN.YourController.isMaster == false) return;
    //        if (GameModelTLMN.NumberBot >= ((LobbyTLMN)GameManager.Instance.selectedLobby).numberRobotAllowed) return;

    //        Vector3 thisRect = Camera.main.WorldToScreenPoint(gameObject.GetComponentInChildren<UISprite>().transform.position);
    //        if (GUI.Button(new Rect(thisRect.x - 80f / 2, Screen.height - thisRect.y - 80f / 2, 80f, 80f), "THÊM MÁY"))
    //        {
    //            GameManager.Server.DoRequestPluginGame(Utility.SetEsObject("addRobot", new object[] {
    //                "slotId", slotIndex
    //            }));
    //        }
    //    }
    //}
    void OnClickButtonPlus(GameObject obj)
    {
        //GameManager.Server.DoRequestPluginGame(Utility.SetEsObject("addRobot", new object[] {
        //            "slotId", slotIndex
        //        }));
        GPGameManagerTLMN.Create(2);
    }
Exemplo n.º 2
0
 private void OnClickButtonGameInfo(GameObject targetObject)
 {
     if (GameManager.CurrentScene == ESceneName.GameplayChan)
     {
         GPGameManagerChan.Create();
     }
     else if (GameManager.CurrentScene == ESceneName.GameplayTLMN)
     {
         GPGameManagerTLMN.Create();
     }
     else if (GameManager.CurrentScene == ESceneName.GameplayPhom)
     {
         GPGameManagerPhom.Create();
     }
 }