質問編集履歴
1
エラーとプログラムを編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,7 +16,9 @@
|
|
16
16
|
|
17
17
|
```
|
18
18
|
|
19
|
-
|
19
|
+
NullReferenceException: Object reference not set to an instance of an object
|
20
|
+
|
21
|
+
biggerball.Start () (at Assets/NeuroSkyAssets/NeuroSkyScripts/biggerball.cs:14)
|
20
22
|
|
21
23
|
```
|
22
24
|
|
@@ -56,7 +58,7 @@
|
|
56
58
|
|
57
59
|
private int poorSignal1;
|
58
60
|
|
59
|
-
p
|
61
|
+
private int attention1;
|
60
62
|
|
61
63
|
private int meditation1;
|
62
64
|
|
@@ -78,7 +80,13 @@
|
|
78
80
|
|
79
81
|
|
80
82
|
|
81
|
-
|
83
|
+
public int GetBulletCount()
|
84
|
+
|
85
|
+
{
|
86
|
+
|
87
|
+
return attention1;
|
88
|
+
|
89
|
+
}
|
82
90
|
|
83
91
|
void Start()
|
84
92
|
|
@@ -456,8 +464,6 @@
|
|
456
464
|
|
457
465
|
}
|
458
466
|
|
459
|
-
|
460
|
-
|
461
467
|
```
|
462
468
|
|
463
469
|
```
|
@@ -472,77 +478,33 @@
|
|
472
478
|
|
473
479
|
public class biggerball : MonoBehaviour {
|
474
480
|
|
481
|
+
|
482
|
+
|
483
|
+
public DisplayData display;
|
484
|
+
|
475
485
|
|
476
486
|
|
477
|
-
|
487
|
+
|
478
|
-
|
479
|
-
|
480
488
|
|
481
489
|
// Use this for initialization
|
482
490
|
|
483
|
-
void Start (
|
491
|
+
void Start () {
|
492
|
+
|
493
|
+
|
494
|
+
|
484
|
-
|
495
|
+
int value ;
|
496
|
+
|
497
|
+
value = display.GetBulletCount();
|
498
|
+
|
499
|
+
Debug.Log(value);
|
500
|
+
|
485
|
-
|
501
|
+
}
|
486
|
-
|
487
|
-
|
488
502
|
|
489
503
|
// Update is called once per frame
|
490
504
|
|
491
|
-
void Update (
|
505
|
+
void Update () {
|
492
|
-
|
493
|
-
|
506
|
+
|
494
|
-
|
495
|
-
|
507
|
+
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
value = 0;
|
504
|
-
|
505
|
-
if (value >= 50 && value < 60)
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
{
|
510
|
-
|
511
|
-
//this.transform.localScale = new Vector3(2, 2, 2);
|
512
|
-
|
513
|
-
//myCollider.radius += 2f;
|
514
|
-
|
515
|
-
Debug.Log("1");
|
516
|
-
|
517
|
-
}
|
518
|
-
|
519
|
-
else if (value >= 60 && value < 70)
|
520
|
-
|
521
|
-
{
|
522
|
-
|
523
|
-
//myCollider.radius += 5f;
|
524
|
-
|
525
|
-
Debug.Log("2");
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
}
|
530
|
-
|
531
|
-
else if (value >= 70 && value < 100)
|
532
|
-
|
533
|
-
{
|
534
|
-
|
535
|
-
Debug.Log("3");
|
536
|
-
|
537
|
-
}
|
538
|
-
|
539
|
-
else if (value >= 100)
|
540
|
-
|
541
|
-
{
|
542
|
-
|
543
|
-
Debug.Log("4");
|
544
|
-
|
545
|
-
}
|
546
508
|
|
547
509
|
}
|
548
510
|
|
@@ -550,6 +512,8 @@
|
|
550
512
|
|
551
513
|
|
552
514
|
|
515
|
+
|
516
|
+
|
553
517
|
```
|
554
518
|
|
555
519
|
|