質問編集履歴
1
書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,45 +24,45 @@
|
|
24
24
|
|
25
25
|
```
|
26
26
|
|
27
|
-
using System.Collections;
|
27
|
+
1 using System.Collections;
|
28
28
|
|
29
|
-
using System.Collections.Generic;
|
29
|
+
2 using System.Collections.Generic;
|
30
30
|
|
31
|
-
using UnityEngine;
|
31
|
+
3 using UnityEngine;
|
32
32
|
|
33
|
-
using UnityEngine.UI; //UIを使うので忘れず追加
|
33
|
+
4 using UnityEngine.UI; //UIを使うので忘れず追加
|
34
34
|
|
35
|
+
5
|
35
36
|
|
37
|
+
6 public class GameDirector : MonoBehaviour
|
36
38
|
|
37
|
-
|
39
|
+
7 {
|
38
40
|
|
39
|
-
|
41
|
+
8 GameObject hpGauge;
|
40
42
|
|
41
|
-
|
43
|
+
9
|
42
44
|
|
45
|
+
10 void Start()
|
43
46
|
|
47
|
+
11 {
|
44
48
|
|
45
|
-
|
49
|
+
12 this.hpGause = GameObject.Find("hpGauge");
|
46
50
|
|
47
|
-
|
51
|
+
13 }
|
48
52
|
|
49
|
-
|
53
|
+
14
|
50
54
|
|
51
|
-
|
55
|
+
15 public void DecreaseHp()
|
52
56
|
|
57
|
+
16 {
|
53
58
|
|
59
|
+
17 this.hpGauge.GetComponent<Image>().fillAmount -= 0.1f;
|
54
60
|
|
55
|
-
|
61
|
+
18 }
|
56
62
|
|
57
|
-
|
63
|
+
19
|
58
64
|
|
59
|
-
this.hpGauge.GetComponent<Image>().fillAmount -= 0.1f;
|
60
|
-
|
61
|
-
|
65
|
+
20 }
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
}
|
66
66
|
|
67
67
|
|
68
68
|
|