//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Tuesday, June 11, 2019 //-------------------------------------------------------- using vnxbqy.UI; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using DG.Tweening; public class GodKingRandomGiftWin : ILWindow { Button closeBtn; Button resetBtn; Text resetCnt; Button randomBtn; Text lsMoney; Image moneyImg; Text useMoney; Text freeTip; List items = new List(); Toggle skipAnim; //物品初始坐标 List itemStartPos = new List() { new Vector3(18, 195, 0), new Vector3(188, 68, 0), new Vector3(-214, -75, 0), new Vector3(-233, 117, 0), new Vector3(256, -123, 0), new Vector3(-483, 90, 0), new Vector3(-461, -125, 0), new Vector3(0, -99, 0), new Vector3(415, 154, 0), new Vector3(486, -90, 0), }; Vector3[] path1 = new Vector3[] { new Vector3(0, 0, 0), new Vector3(73, 35 , 0), new Vector3(140 , -58 , 0), new Vector3(25 , -115 , 0), new Vector3(-112 , -66 , 0), new Vector3(-108 , 68 , 0) , new Vector3(8 , 115 , 0), new Vector3(175 , 90 , 0), new Vector3(275 , -15 , 0), new Vector3(216 , -146 , 0), new Vector3(18 , -198 , 0), new Vector3(-200 , -155 , 0), new Vector3(-273 , 6 , 0), new Vector3(-162 , 169 , 0), new Vector3(0, 195 , 0) }; List showItemIndex = new List(); //还未抽中的物品索引 PackModel playerPack { get { return ModelCenter.Instance.GetModelEx(); } } #region Built-in protected override void BindController() { closeBtn = proxy.GetWidgtEx