質問編集履歴
1
操作キャラのスクリプトを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -108,10 +108,28 @@
|
|
108
108
|
```
|
109
109
|
|
110
110
|
### 試したこと
|
111
|
+
ChatGPTで試行錯誤
|
112
|
+
ただしCS0246とCS1061以下の堂々巡り。
|
113
|
+
error CS0246
|
114
|
+
The type or namespace name 'UnityChanControlScriptWithRgidBody' could not be found (are you missing a using directive or an assembly reference?)
|
115
|
+
error CS1061
|
116
|
+
'Player' does not contain a definition for 'OnGetItemCallback' and no accessible extension method 'OnGetItemCallback' accepting a first argument of type 'Player' could be found (are you missing a using directive or an assembly reference?)
|
111
117
|
|
112
|
-
Debug.Logなどで
|
113
118
|
|
114
119
|
### 補足情報(FW/ツールのバージョンなど)
|
115
120
|
|
116
|
-
|
121
|
+
操作キャラのスクリプト
|
122
|
+
ファイル名UnityChanControlScriptWithRgidBody.cs
|
117
123
|
|
124
|
+
using UnityEngine;
|
125
|
+
using System.Collections;
|
126
|
+
using System.Diagnostics;
|
127
|
+
using System;
|
128
|
+
|
129
|
+
namespace UnityChan
|
130
|
+
public class UnityChanControlScriptWithRgidBody : MonoBehaviour
|
131
|
+
{
|
132
|
+
//略//
|
133
|
+
public Action OnGetItemCallback;
|
134
|
+
}
|
135
|
+
|