public void DirectionInit() { direction = Direction.LEFT; //デフォルトの向きがLeftなのでLeftを取得 detectEmptyFront = transform.GetChild(0).GetChild(0).GetComponent <DetectEmpty>(); }