コード例 #1
0
    public override void OnEnter()
    {
        if (alreadyenter)
        {
            return;
        }
        Module.UI.mb.Hide();
        alreadyenter      = true;
        Module.Misc.state = this;
        role = EntityManager.CreateCharacter(Module.Role.uid,
                                             Module.Role.Basic.name,
                                             Module.Role.Basic.hp,
                                             Module.Role.pos);
        Debug.Assert(role != null);
        controller = new MoveController(role);
        follow.Attach(role);
        Module.UI.role.RefreshRole();

        /*
         * var i = new DB.IdCount();
         * i.id = 10000;
         * i.count = 3;
         * Module.Role.bag[10000] = i;
         * i.id = 10001;
         * Module.Role.bag[10001] = i;
         */
        r_startgame req = new r_startgame();

        NetInstance.Gate.Send(req);
        DB.DB.Load();
    }