void Start() { for (int i = 0; i < PlayerNumber.count; ++i) { //リストに追加 scrollController.AddList(playerObjects[i].GetComponent <PlayerController>()); } for (int i = PlayerNumber.count; i < PlayerNumber.MaxCount; ++i) { Destroy(playerObjects[i]); } playerObjects.RemoveRange(PlayerNumber.count, PlayerNumber.MaxCount - PlayerNumber.count); //プレイヤーを地面につけるために物理演算させる Physics.Simulate(10.0f); }
void Start() { scrollController.AddList(this); }