Ejemplo n.º 1
0
    public void Awake()
    {
        if (_instance != null)
        {
            Destroy(gameObject);
            return;
        }

        Debug.Log("Aweake");

        instance = this;
        DontDestroyOnLoad(gameObject);

        // Initialize network

        net = new NetLogic();
    }
Ejemplo n.º 2
0
 internal GameAPI(ClientHandler client, ScriptScope scope)
 {
     this.client = client;
     _netLogic   = new NetLogic();
     _scope      = scope;
 }
Ejemplo n.º 3
0
 void OnDealCard()
 {
     NetLogic.RequestNet(eProtocalCommand.GAME_DEAL_CARD, null);
 }