Beispiel #1
0
 /// <summary>
 /// 开始移动
 /// </summary>
 public void BeginMove(Vector3 from, Vector3 to, float delay = 0, BetFinishedType fType = BetFinishedType.None, Action callback = null)
 {
     gameObject.SetActive(true);
     CurFinishedType = fType;
     Tp.from         = from;
     Tp.to           = to;
     Tp.delay        = delay;
     Finished        = callback;
     Tp.ResetToBeginning();
     Tp.PlayForward();
 }
Beispiel #2
0
        public void GiveMoney(DuifenPlayerPanel someone, int money, BetFinishedType type = BetFinishedType.None, float delay = 0, float flyTime = 0.3f, int depth = 99)
        {
            var main = App.GetGameManager <DuifenGameManager>();

            GameObject[] bets = main.BetMgr.CreatBetArray(money, 9, transform, depth);
            for (int i = 0; i < bets.Length; i++)
            {
                Bet bet = bets[i].GetComponent <Bet>();
                bet.transform.parent = someone.transform;
                main.BetMgr.BetParent.GetComponent <UIPanel>().depth = 4;

                bet.BeginMove(bet.transform.localPosition, Vector3.zero, delay,
                              type, flyTime);
            }
        }