public void CheckNetworkNewbie(int networkId) { var ppName = CaomaoGameGobalConfig.Instance.LocalPPNewbieHelpName; if (string.IsNullOrEmpty(ppName)) { Debug.LogError("PPNewbieName == null"); return; } this.m_networkNewbieHelpId = networkId; var localNewbieId = PlayerPrefModule.GetInt(ppName); if (localNewbieId == 0) { //说明还没有开始新手教程 if (networkId != 0) { //说明是客户端自己删了数据,但是服务器已经有新手教程了 PlayerPrefs.SetInt(ppName, networkId); } } else { if (localNewbieId != networkId) { //如果本地的不和服务器下发的一样,就开始新手教程 this.StartNewbieHelp(networkId); } } }
private bool m_bJump = false;//是否跳过 private void Awake() { this.m_bJump = PlayerPrefModule.GetBool("OpenAnimationJump"); if (this.m_bJump == false) { this.Awake(this.transform); } else { this.OnFinished(); } }