質問編集履歴

1

より細かくした

2019/03/12 14:14

投稿

easan
easan

スコア12

test CHANGED
File without changes
test CHANGED
@@ -18,13 +18,21 @@
18
18
 
19
19
  {
20
20
 
21
+ Debug.Log("hit");
22
+
23
+ if(other.tag == ("enemy"))
24
+
25
+ {
26
+
21
- Debug.Log("damage");
27
+ Debug.Log("damage");
28
+
29
+ Destroy (other.gameObject) ;
30
+
31
+ }
22
32
 
23
33
  }
24
34
 
25
- }
26
-
27
- ```ここに言語名を入力
35
+ }```ここに言語名を入力
28
36
 
29
37
  c#
30
38