Skip to content

Commit

Permalink
収束早めた
Browse files Browse the repository at this point in the history
  • Loading branch information
hiryma committed Apr 2, 2019
1 parent 7611125 commit 0ac607a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
1 change: 1 addition & 0 deletions LdrBloom/.gitignore
@@ -1,2 +1,3 @@
slackToken.txt
slackToken.txt.meta
*.png
13 changes: 13 additions & 0 deletions LdrBloom/Assets/Scenes/Main.cs
Expand Up @@ -61,6 +61,19 @@ void Start()

StartCoroutine(CoSetupSlack());

_benchmarkToggle.onValueChanged.AddListener(toggle =>
{
if (_benchmarkToggle.isOn)
{
_count = 1f; //1から始めることでだいぶ収束が速くなる。TODO: 速度も適切な値がありそう。
}
else
{
_count = 0f;
}
_countVelocity = 0f;
});

_speedSlider.value = 0.5f;
_objects = new GameObject[SphereCount + CylinderCount];
_velocities = new Vector3[_objects.Length];
Expand Down
6 changes: 3 additions & 3 deletions LdrBloom/Assets/Scenes/SampleScene.unity
Expand Up @@ -1218,7 +1218,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 400, y: 40}
m_SizeDelta: {x: 400, y: 100}
m_Pivot: {x: 0, y: 0}
--- !u!114 &628563273
MonoBehaviour:
Expand All @@ -1242,10 +1242,10 @@ MonoBehaviour:
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 14
m_FontSize: 40
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 10
m_MinSize: 4
m_MaxSize: 40
m_Alignment: 6
m_AlignByGeometry: 0
Expand Down

0 comments on commit 0ac607a

Please sign in to comment.