コード例 #1
0
    public void Awake()
    {
        if (_instance != null)
        {
            Destroy(gameObject);
            return;
        }

        Debug.Log("Aweake");

        instance = this;
        DontDestroyOnLoad(gameObject);

        // Initialize network

        net = new NetLogic();
    }
コード例 #2
0
ファイル: GameAPI.cs プロジェクト: Strdate/PythonConsole
 internal GameAPI(ClientHandler client, ScriptScope scope)
 {
     this.client = client;
     _netLogic   = new NetLogic();
     _scope      = scope;
 }
コード例 #3
0
ファイル: RoomManager.cs プロジェクト: zhishu520/biji_client
 void OnDealCard()
 {
     NetLogic.RequestNet(eProtocalCommand.GAME_DEAL_CARD, null);
 }