// Start is called before the first frame update public void Turn() { GameObject c = GameObject.Find("コメントパネル/Text"); coment = c.GetComponent <Text>(); GameObject sta = GameObject.Find("戦闘処理"); getStatus = sta.GetComponent <GetStatus>(); speed = new List <int> { getStatus.Getpspd1(), getStatus.Getespd1() - 1 }; if (getStatus.Getkazu() >= 2) { speed.Add(getStatus.Getespd2() - 2); if (getStatus.Getkazu() >= 3) { speed.Add(getStatus.Getespd3() - 3); if (getStatus.Getkazu() == 4) { speed.Add(getStatus.Getespd4() - 4); } } } move = smove; Debug.Log("ターン" + turn); Debug.Log("行動数" + move + "/" + smove); //Debug.Log("speed "+speed[0] + "," + speed[1] + "," + speed[2] + "," + speed[3] + "," + speed[4]); Move(); }