示例#1
0
 void Awake()
 {
     DontDestroyOnLoad(this.gameObject);
     LoadConfigUsingJson();
     //client = new C2Client(player);
     client = C2Client.Instance;
     //client.Player = C2Client.;
     //(player);
 }
示例#2
0
    void Awake()
    {
        DontDestroyOnLoad(this);

        client = C2Client.Instance;

        LoadServerConfigUsingJson();

        //C2Session.Instance.OnInit();
    }
示例#3
0
 public C2Session(C2Client client)
 {
     OnInit();
     this.client = client;
 }