// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.A)) { index++; list2.Add(index); if (list2.Count > 4) { list2.Remove(list2[0]); } for (int i = 0; i < list2.Count; i++) { Debug.Log(list2[i]); } //LinqUtil.Forward(list1); //for (int i = 0; i < list1.Count; i++) //{ // Debug.Log(list1[i]); //} //Dictionary<string,int> dic = StringUtil.CountWords(d, "A"); //foreach (var item in dic) //{ // Debug.Log(item); //} //LinqUtil.ArrayPop(ref dd); //foreach (var item in dd) //{ // Debug.Log(item); //} //Debug.Log(a); //Debug.Log(MathHelpr.NumberToBaseString(c)); //Debug.Log("a = " + LinqUtil.GetRandom(-5, 5,ref aa)); //Debug.LogError("b = " + LinqUtil.GetRandom(0, 5, 2, ref bb)); //Debug.Log(LinqUtil.GetRandom(curve)); //list.Forward(2); //for (int i = 0; i < list.Count; i++) //{ // Debug.Log(list[i].name); //} } else if (Input.GetKeyDown(KeyCode.D)) { LinqUtil.Back(list1, 1); for (int i = 0; i < list1.Count; i++) { Debug.Log(list1[i]); } //Debug.LogError(MathHelpr.BaseStringToNumber(d)); //list.Back(2); //for (int i = 0; i < list.Count; i++) //{ // Debug.Log(list[i].name); //} } if (Input.GetMouseButton(0)) { //trans.RotateToTarget(Input.mousePosition); //RotateYToTransform(trans, trans2.position); } }