Example #1
0
    private void ack_startgame(int err, wire obj)
    {
        if (err != 0)
        {
            return;
        }
        a_startgame ack = (a_startgame)obj;

        Module.Role.pos = new Vector3(ack.coord_x, 0, ack.coord_z);
        StateManager.Instance.SwitchState("MainState");
    }
Example #2
0
    void try_register()
    {
        if (register_proto)
        {
            return;
        }
        register_proto = true;
        a_roleinfo   roleinfo   = new a_roleinfo();
        a_rolecreate rolecreate = new a_rolecreate();
        a_startgame  rolestart  = new a_startgame();

        Register(roleinfo, ack_roleinfo);
        Register(rolecreate, ack_rolecreate);
        Register(rolestart, ack_startgame);
    }