コード例 #1
0
    //void OnGUI()
    //{
    //    if ((avatar == null || player == null) && Camera.main != null && player == null && ((ChannelPhom)GameManager.Instance.selectedChannel).type == ChannelPhom.ChannelType.Amateur)
    //    {
    //        if (!HeaderMenu.Instance.IsHidden) return;
    //        if (GameManager.Instance.ListPopup.Count > 0) return;
    //        if (GameModelPhom.CurrentState >= GameModelPhom.EGameState.deal) return;
    //        if (GameModelPhom.YourController == null || GameModelPhom.YourController.isMaster == false) return;
    //        if (GameModelPhom.NumberBot >= ((LobbyPhom)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
        //       }));
        GPGameManagerPhom.Create(2);
    }
コード例 #2
0
ファイル: HeaderMenu.cs プロジェクト: wefasdfaew2/GamePortal
 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();
     }
 }