質問編集履歴

3

かいぜん

2019/03/20 13:42

投稿

ssssggg
ssssggg

スコア40

test CHANGED
File without changes
test CHANGED
@@ -6,12 +6,8 @@
6
6
 
7
7
  コード
8
8
 
9
- if(string = 1)&& (Input.GetKeyDown(KeyCode.Z))
9
+ if(m_syori == 1) && (Input.GetKeyDown(KeyCode.Z)) {
10
10
 
11
-
11
+ }
12
12
 
13
-
14
-
15
- }
16
-
17
- エラーは”Operator '&&'cannot be applied to operands of type 'int'and'bool'と出ています。
13
+ エラーはInvalid expression term '&&'と出ています。

2

誤字

2019/03/20 13:42

投稿

ssssggg
ssssggg

スコア40

test CHANGED
File without changes
test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  コード
8
8
 
9
- if(string) = 1 && (Input.GetKeyDown(KeyCode.Z))
9
+ if(string = 1)&& (Input.GetKeyDown(KeyCode.Z))
10
10
 
11
11
 
12
12
 

1

誤字

2019/03/20 13:36

投稿

ssssggg
ssssggg

スコア40

test CHANGED
File without changes
test CHANGED
@@ -6,9 +6,9 @@
6
6
 
7
7
  コード
8
8
 
9
- if((string) = 1 && (Input.GetKeyDown(KeyCode.Z)))
9
+ if(string) = 1 && (Input.GetKeyDown(KeyCode.Z))
10
10
 
11
- {
11
+
12
12
 
13
13
 
14
14