void MoveQueue() { groundQueue[groundQueue.Count - 1].groundType = (GroundBase.GroundType)BCRandomMaker.GetRandByWeight(CurrentHardLevel); groundQueueGrid.enabled = false; GroundLittle temp = groundQueue[0]; temp.transform.SetAsLastSibling(); groundQueue.Remove(temp); groundQueue.Add(temp); for (int i = 0; i < groundQueue.Count; i++) { groundQueue[i].tweenPos.PlayForwardForce(); } }
static int get_randMaker(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BCTweenRandTrigger obj = (BCTweenRandTrigger)o; BCRandomMaker ret = obj.randMaker; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index randMaker on a nil value")); } }
static int set_randMaker(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BCTweenRandTrigger obj = (BCTweenRandTrigger)o; BCRandomMaker arg0 = (BCRandomMaker)ToLua.CheckObject <BCRandomMaker>(L, 2); obj.randMaker = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index randMaker on a nil value")); } }
public void ReStart() { if (!IsPassMode) { ChooseModeTween.SetCurrentValueToStart(); ChooseModeBlock.SetActive(false); ChooseRotatePanel.SetActive(false); } for (int i = 0; i < groundQueue.Count; i++) { groundQueue[i].groundType = (GroundBase.GroundType)BCRandomMaker.GetRandByWeight(CurrentHardLevel); } for (int i = 0; i < groundBigQueue.Count; i++) { groundBigQueue[i].InitGround(i); } TipBlankButton.onClick.RemoveListener(ReStart); }
void Start() { for (int i = 0; i < 4; i++) { GroundLittle gb = Instantiate <GroundLittle>(groundQueue[0]); gb.transform.SetParent(groundQueueGrid.transform, false); groundQueue.Add(gb); } for (int i = 0; i < groundQueue.Count; i++) { groundQueue[i].groundType = (GroundBase.GroundType)BCRandomMaker.GetRandByWeight(CurrentHardLevel); } for (int i = 0; i < 24; i++) { GroundBig gb = Instantiate <GroundBig>(groundBigQueue[0]); gb.transform.SetParent(groundBigQueue[0].transform.parent, false); gb.InitGround(i + 1); groundBigQueue.Add(gb); } }