void OnGetUserState(NetMsgDef msg) { TSCGetUserState userState = TSCGetUserState.ParseFrom(msg.mBtsData); userPackage.SetPlayerState(userState); SendEvent("RefreshUserState"); if (initFlag == false) { BuildSanctuary(); InitManor(); } }