void ack_moveenter(int err, wire obj) { a_moveenter ack = (a_moveenter)obj; Vector3 src = new Vector3(); Tool.ToNative(ref src, ack.coord_x, ack.coord_z); EntityManager.CreateCharacter(ack.uid, Tool.tostring(ack.name), ack.hp, src); }
void Start() { OnEnter(); a_itemuse itemuse = new a_itemuse(); a_movepoint movepoint = new a_movepoint(); a_movediff movediff = new a_movediff(); a_moveenter moveenter = new a_moveenter(); a_moveleave moveleave = new a_moveleave(); a_attack attack = new a_attack(); a_gatekick kick = new a_gatekick(); Register(itemuse, ack_itemuse); Register(movepoint, ack_movepoint); Register(movediff, ack_movediff); Register(moveenter, ack_moveenter); Register(moveleave, ack_moveleave); Register(attack, ack_attack); Register(kick, ack_gatekick); }