// Use this for initialization void Start() { Network = NetworkManager.Instance; state = nowStatus.Start; init_startUI(); init_charArry(); setSpawn(); }
public void StartExcute() { if (form == null) { BindUI(); } ResetExcuter(); status = nowStatus.READY; SafeUpdateLog("开始执行", InfoTypes.Info); }
void Update() { if (status == nowStatus.READY) { order = GetOrder(); if (order != OrderType.NONE) { status = nowStatus.EXCUTING; ExcuteOrder(order); } } }
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); }
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); }
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); } }
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); }
private void onOrderComplete() { status = nowStatus.READY; }
public void onOrderComplete() { status = nowStatus.READY; }