예제 #1
0
파일: Main.cs 프로젝트: ZhHong/u3d_client
	// Use this for initialization
	void Start () {
		if (network == null){
			network = LFL_NetWork.getInstance ();
		}
        //init protocol
        protocol["0-0-s"] = "['String','String','String','String','Int','Int']";
        protocol["0-0-c"] = "['Byte','Int','Byte','Int']";

		string str =Plugins.LocalData_Trans.LocalData_Trans.Encrypto("singularity","singularitysingularitysingularit");
		Debug.Log ("========="+str);
	}
예제 #2
0
 public static LFL_NetWork getInstance() {
     if (instance == null) {
         instance = new LFL_NetWork();
     }
     return instance;
 }