質問編集履歴
2
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -44,8 +44,10 @@
|
|
44
44
|
|
45
45
|
### 試したこと
|
46
46
|
staticで定義もしてみました
|
47
|
+
```
|
47
48
|
public static int damagePower=1;
|
48
49
|
if (collision.tag == "Enemy")
|
49
50
|
{
|
50
51
|
punchmanager.damagetrigger(punch1.damagePower,collision);//punchmanagerクラスにdamagePowerを渡したい
|
51
|
-
}
|
52
|
+
}
|
53
|
+
```
|
1
修正
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
あるフィールドの値を引数
|
1
|
+
あるフィールドの値を引数として違うクラスに渡したい
|
body
CHANGED
File without changes
|