Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
kbengine committed Jun 21, 2014
1 parent 208d093 commit 2882e2b
Show file tree
Hide file tree
Showing 19 changed files with 24 additions and 3 deletions.
Binary file modified Assets/Plugins/kbengine/core/KBEngine.cs
Binary file not shown.
Binary file modified Assets/Scenes/login.unity
Binary file not shown.
2 changes: 1 addition & 1 deletion Assets/Scenes/login.unity.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified Assets/Scenes/selavatars.unity
Binary file not shown.
Binary file added Assets/Scenes/start.unity
Binary file not shown.
4 changes: 4 additions & 0 deletions Assets/Scenes/start.unity.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified Assets/Scenes/world.unity
Binary file not shown.
21 changes: 19 additions & 2 deletions Assets/Scripts/UI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,24 @@ public class UI : MonoBehaviour {

private bool showReliveGUI = false;

void Awake()
{
DontDestroyOnLoad(transform.gameObject);
}

// Use this for initialization
void Start () {
installEvents();
Application.LoadLevel("login");
}

void installEvents()
{
CancelInvoke("installEvents");


// common
KBEngine.Event.registerOut("onKicked", this, "onKicked");

// login
KBEngine.Event.registerOut("onCreateAccountResult", this, "onCreateAccountResult");
KBEngine.Event.registerOut("onLoginFailed", this, "onLoginFailed");
Expand Down Expand Up @@ -121,6 +130,7 @@ void onSelAvatarUI()
account.selectAvatarGame(selAvatarDBID);

Application.LoadLevel("world");
ui_state = 2;
}
}

Expand Down Expand Up @@ -331,7 +341,14 @@ public void onLoginSuccessfully(UInt64 rndUUID, Int32 eid, Account accountEntity

Application.LoadLevel("selavatars");
}


public void onKicked(UInt16 failedcode)
{
err("kick, disconnect!, reason=" + KBEngineApp.app.serverErr(failedcode));
Application.LoadLevel("login");
ui_state = 0;
}

public void Loginapp_importClientMessages()
{
info("Loginapp_importClientMessages ...");
Expand Down
Binary file modified Library/ScriptAssemblies/Assembly-CSharp-firstpass.dll
Binary file not shown.
Binary file modified Library/ScriptAssemblies/Assembly-CSharp-firstpass.dll.mdb
Binary file not shown.
Binary file modified Library/ScriptAssemblies/Assembly-CSharp.dll
Binary file not shown.
Binary file modified Library/ScriptAssemblies/Assembly-CSharp.dll.mdb
Binary file not shown.
Binary file modified Library/assetDatabase3
Binary file not shown.
Binary file modified Library/guidmapper
Binary file not shown.
Binary file modified Library/metadata/2b/2b2ff6108917da042ac83e9c114a30c6
Binary file not shown.
Binary file modified Library/metadata/7c/7c6ffeca05ab703418584311523a29ce
Binary file not shown.
Binary file removed Library/metadata/7e/7e64f65c921cadc4a8726550a06cd4a1
Binary file not shown.
Binary file modified Library/metadata/95/955690c9d3d289a43818f18004ba5455
Binary file not shown.
Binary file modified ProjectSettings/EditorBuildSettings.asset
Binary file not shown.

0 comments on commit 2882e2b

Please sign in to comment.