短縮/収穫時にバイブ追加

This commit is contained in:
kimura 2021-07-21 14:59:14 +09:00
parent 851a74fe94
commit d8d7149d98
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public class CornField : MonoBehaviour
plants[ii].Harvested.Subscribe(_ =>
{
// 収穫
VibrationManager.Instance.PlayVibrationOnce();
var harvest = Instantiate(harvestPrefab, plants[ii].transform);
this.CallWaitForSeconds(.5f, () =>
{
@ -77,6 +77,7 @@ public class CornField : MonoBehaviour
promoteGrowthButton.OnClickAsObservable().Subscribe(_ =>
{
VibrationManager.Instance.PlayVibrationOnce();
for (int i = 0; i < plants.Count; i++)
{
if (Random.Range(0, 2) == 0){