|
|
@@ -85,6 +85,9 @@ public class UserInfo {
|
|
|
//判断引导是否完成(服务端保存)
|
|
|
//index0: 新手引导NewUserGuide
|
|
|
public bool IsGuideFinish(int index) {
|
|
|
+ if (index == 0) {
|
|
|
+ return PlayerPrefs.GetInt("NewUserGuideFinish_" + LoginMgr.myUserInfo.id, 0) == 1;
|
|
|
+ }
|
|
|
char[] chars = guideRecord.ToCharArray();
|
|
|
if (index < chars.Length) {
|
|
|
return chars[index] == '1';
|
|
|
@@ -92,6 +95,10 @@ public class UserInfo {
|
|
|
return false;
|
|
|
}
|
|
|
public void SaveGuideFinish(int index) {
|
|
|
+ if (index == 0) {
|
|
|
+ PlayerPrefs.SetInt("NewUserGuideFinish_" + LoginMgr.myUserInfo.id, 1);
|
|
|
+ return;
|
|
|
+ }
|
|
|
char[] chars = guideRecord.ToCharArray();
|
|
|
if (index < chars.Length) {
|
|
|
if (chars[index] == '1') return;
|