private void OnDisable() { var changed = LockStateChanged(); if (changed) { ChangedLockList = lockList.Union(lastLockList).Except(lockList.Intersect(lastLockList)).ToList(); var msg = new CSHeroBind { HeroUuid = ChangedLockList }; NetManager.SendMessage(msg); } for (var i = 0; i < lockList.Count; i++) { ShowLockMask(lockList[i], false); } }
private void OnLock(GameObject go) { IsLock = !IsLock; var csHeroBindMsg = new CSHeroBind { HeroUuid = new List<long> { Uuid } }; NetManager.SendMessage(csHeroBindMsg); }