Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     Network = NetworkManager.Instance;
     state   = nowStatus.Start;
     init_startUI();
     init_charArry();
     setSpawn();
 }
Ejemplo n.º 2
0
 public void StartExcute()
 {
     if (form == null)
     {
         BindUI();
     }
     ResetExcuter();
     status = nowStatus.READY;
     SafeUpdateLog("开始执行", InfoTypes.Info);
 }
Ejemplo n.º 3
0
 void Update()
 {
     if (status == nowStatus.READY)
     {
         order = GetOrder();
         if (order != OrderType.NONE)
         {
             status = nowStatus.EXCUTING;
             ExcuteOrder(order);
         }
     }
 }
Ejemplo n.º 4
0
 public void StartExcute(OutPutBox ouputbox)
 {
     if (form == null)
     {
         Init(ouputbox);
     }
     status             = nowStatus.READY;
     transform.position = new  Vector3(0, 0, 0);
     DOTween.Kill(tweenId);
     nowLine = 0;
     SafeUpdateLog("开始执行", InfoTypes.Info);
 }
Ejemplo n.º 5
0
        private OrderType GetOrder()
        {
            if (nowLine == holder.transform.childCount)
            {
                nowLine = 0;
                status  = nowStatus.COMPELETED;
                SafeUpdateLog("运行完成", InfoTypes.Info);
                outPutBox.CheckOutPut();
                return(OrderType.NONE);
            }
            var o = holder.GetOrderByPos(nowLine).order;

            nowLine += 1;
            return(o);
        }
Ejemplo n.º 6
0
 private void endExcute()
 {
     nowLine = 0;
     form.MoveLine(nowLine);
     status = nowStatus.COMPELETED;
     if (GameMode1Manager.Instance.CheckClear())
     {
         GameDataManager.SetBool(GameMode1Manager.Instance.NowStage + "cleared", true);
         UIKit.OpenPanel <UIStageClear>();
     }
     else
     {
         form.UpdateLog(str2);
     }
 }
Ejemplo n.º 7
0
        public void ResetExcuter()
        {
            DOTween.Kill(tweenId);
            status  = nowStatus.COMPELETED;
            nowLine = 0;
            if (holder)
            {
                holder.OnReset();
            }
            else
            {
                Log.W("holder is null!!");
            }
            GameMode1Manager.Instance.CreateGrass();

            transform.rotation = Quaternion.Euler(GameDefine.Instance.CAR_FORWOARD);
            var r = GameDefine.Instance.MAP_RIDIS;

            transform.position = new Vector3(-r, 0, -r);
        }
Ejemplo n.º 8
0
 private void onOrderComplete()
 {
     status = nowStatus.READY;
 }
Ejemplo n.º 9
0
 public void onOrderComplete()
 {
     status = nowStatus.READY;
 }