197 子 【内政】淘金系统 / 【内政】淘金系统-客户端
| | |
| | | |
| | | |
| | | //武将外观配置 |
| | | public class HeroModel : MonoBehaviour |
| | | public class HeroSkinModel : MonoBehaviour |
| | | { |
| | | [SerializeField] UIHeroController heroModel; |
| | | public int heroSkinID = 0; |
| | |
| | | Vector3 offset = Vector3.zero; |
| | | if (moveIndex == pathPointArr.Length - 1) |
| | | { |
| | | offset = new Vector3((pathPointArr.Length - workerIndex - 1) * 80, 0, 0); |
| | | offset = new Vector3((pathPointArr.Length - workerIndex - 1) * 70, 0, 0); |
| | | } |
| | | var endPos = nextPos - offset; |
| | | |
| | |
| | | } |
| | | GoldRushManager.Instance.SendGoldRushUnlock(0, campID); |
| | | refreshItemEffect.Play(); |
| | | SysNotifyMgr.Instance.ShowTip("GoldRush8"); |
| | | }); |
| | | |
| | | |
| | |
| | | |
| | | GoldRushManager.Instance.SendGoldRushUnlock(0, campID); |
| | | refreshItemEffect.Play(); |
| | | SysNotifyMgr.Instance.ShowTip("GoldRush8"); |
| | | } |
| | | } |
| | | |
| | |
| | | { |
| | | heroModels[i].SetActive(true); |
| | | var skinID = GoldRushManager.Instance.skinIDs[(goldID % skinCnt + i) % skinCnt]; |
| | | heroModels[i].Create(skinID, 0.4f); |
| | | heroModels[i].Create(skinID, 0.5f); |
| | | } |
| | | else |
| | | { |
| | |
| | | { |
| | | var config = GoldRushWorkerConfig.Get(workerID); |
| | | nameText.text = config.Name; |
| | | heroModel.Create(config.SkinID, 0.7f); |
| | | heroModel.Create(config.SkinID, 0.8f); |
| | | var lockState = GoldRushManager.Instance.GetWorkerLockState(workerID); |
| | | if (lockState == 0) |
| | | { |
| | |
| | | return; |
| | | |
| | | GoldRushManager.Instance.SendGoldRushUnlock(1, workerID); |
| | | SysNotifyMgr.Instance.ShowTip("GoldRush7"); |
| | | }); |
| | | } |
| | | lockMoneyBtn.SetActive(false); |
| | |
| | | return; |
| | | } |
| | | GoldRushManager.Instance.SendGoldRushUnlock(1, workerID); |
| | | SysNotifyMgr.Instance.ShowTip("GoldRush7"); |
| | | }); |
| | | |
| | | }); |