質問編集履歴

8

変更

2015/12/11 08:07

投稿

cdecda
cdecda

スコア11

test CHANGED
File without changes
test CHANGED
@@ -16,17 +16,31 @@
16
16
 
17
17
  error CS1502: The best overloaded method match for `UnityEngine.Vector3.Vector3(float, float, float)' has some invalid arguments
18
18
 
19
+
20
+
19
21
  error CS1503: Argument `#1' cannot convert `UnityEngine.Vector3' expression to type `float'
22
+
23
+
20
24
 
21
25
  error CS1502: The best overloaded method match for `UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)' has some invalid arguments
22
26
 
27
+
28
+
23
29
  error CS1503: Argument `#2' cannot convert `object' expression to type `UnityEngine.Vector3'
30
+
31
+
24
32
 
25
33
  error CS1502: The best overloaded method match for `UnityEngine.Vector3.Vector3(float, float, float)' has some invalid arguments
26
34
 
35
+
36
+
27
37
  error CS1503: Argument `#1' cannot convert `UnityEngine.Vector3' expression to type `float'
28
38
 
39
+
40
+
29
41
  error CS1502: The best overloaded method match for `UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)' has some invalid arguments
42
+
43
+
30
44
 
31
45
  error CS1503: Argument `#2' cannot convert `object' expression to type `UnityEngine.Vector3'
32
46
 

7

コードとエラー変更

2015/12/11 08:07

投稿

cdecda
cdecda

スコア11

test CHANGED
File without changes
test CHANGED
@@ -14,29 +14,23 @@
14
14
 
15
15
  ###発生している問題・エラーメッセージ
16
16
 
17
- error CS0029: Cannot implicitly convert type `UnityEngine.GameObject' to `UnityEngine.Transform'
17
+ error CS1502: The best overloaded method match for `UnityEngine.Vector3.Vector3(float, float, float)' has some invalid arguments
18
18
 
19
- error CS0029: Cannot implicitly convert type `UnityEngine.Vector3' to `UnityEngine.Transform'
19
+ error CS1503: Argument `#1' cannot convert `UnityEngine.Vector3' expression to type `float'
20
-
21
- warning CS0219: The variable `eMarker' is assigned but its value is never used
22
-
23
- warning CS0219: The variable `sMarker' is assigned but its value is never used
24
-
25
- error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
26
-
27
- error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
28
-
29
- error CS0119: Expression denotes a `type', where a `variable', `value' or `method group' was expected
30
20
 
31
21
  error CS1502: The best overloaded method match for `UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)' has some invalid arguments
32
22
 
33
23
  error CS1503: Argument `#2' cannot convert `object' expression to type `UnityEngine.Vector3'
34
24
 
25
+ error CS1502: The best overloaded method match for `UnityEngine.Vector3.Vector3(float, float, float)' has some invalid arguments
26
+
35
- error CS0119: Expression denotes a `type', where a `variable', `value' or `method group' was expected
27
+ error CS1503: Argument `#1' cannot convert `UnityEngine.Vector3' expression to type `float'
36
28
 
37
29
  error CS1502: The best overloaded method match for `UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)' has some invalid arguments
38
30
 
39
31
  error CS1503: Argument `#2' cannot convert `object' expression to type `UnityEngine.Vector3'
32
+
33
+
40
34
 
41
35
  ###ソースコード
42
36
 
@@ -78,6 +72,10 @@
78
72
 
79
73
  isTriggeredcp1 = true;
80
74
 
75
+ Transform sMarker = GetComponent<enemyjunkai>().startMarker;
76
+
77
+ Transform eMarker = GetComponent<enemyjunkai> ().endMarker;
78
+
81
79
  plane = Other.transform.gameObject;
82
80
 
83
81
  position = Other.transform.position;
@@ -93,10 +91,6 @@
93
91
  // Use this for initialization
94
92
 
95
93
  void Start () {
96
-
97
- Transform sMarker = GetComponent<enemyjunkai>().startMarker;
98
-
99
- Transform eMarker = GetComponent<enemyjunkai> ().endMarker;
100
94
 
101
95
 
102
96
 
@@ -136,7 +130,7 @@
136
130
 
137
131
 
138
132
 
139
- Instantiate(e2,Vector3(position),Quaternion.identity); Instantiate(e,Vector3(position),Quaternion.identity);
133
+ Instantiate(e2,new Vector3(position,position,position),Quaternion.identity); Instantiate(e,new Vector3(position,positon,position,),Quaternion.identity);
140
134
 
141
135
  }
142
136
 

6

ソースコードの編集

2015/12/11 08:05

投稿

cdecda
cdecda

スコア11

test CHANGED
File without changes
test CHANGED
@@ -48,11 +48,21 @@
48
48
 
49
49
  private bool isTriggeredcp1;
50
50
 
51
- private bool isTriggeredpy;
51
+ private bool isTriggeredpy;
52
52
 
53
- Transform position; Object e; Object e2; Transform p;
53
+ Transform position;
54
54
 
55
+ Object enemy;
56
+
57
+ Object enemy2;
58
+
59
+ Transform plane;
60
+
55
- Transform sMarker; Transform eMarker; GameObject Target;
61
+ Transform sMarker;
62
+
63
+ Transform eMarker;
64
+
65
+ GameObject Target;
56
66
 
57
67
 
58
68
 
@@ -64,9 +74,11 @@
64
74
 
65
75
  if (Other.tag == "E") {
66
76
 
67
- isTriggeredpy = true; isTriggeredcp1 = true;
77
+ isTriggeredpy = true;
68
78
 
79
+ isTriggeredcp1 = true;
80
+
69
- p = Other.transform.gameObject;
81
+ plane = Other.transform.gameObject;
70
82
 
71
83
  position = Other.transform.position;
72
84
 
@@ -82,9 +94,9 @@
82
94
 
83
95
  void Start () {
84
96
 
85
- Transform sMarker = GetComponent<cp1>().startMarker;
97
+ Transform sMarker = GetComponent<enemyjunkai>().startMarker;
86
98
 
87
- Transform eMarker = GetComponent<cp1> ().endMarker;
99
+ Transform eMarker = GetComponent<enemyjunkai> ().endMarker;
88
100
 
89
101
 
90
102
 
@@ -116,7 +128,7 @@
116
128
 
117
129
 
118
130
 
119
- p.transform.Find("sg") = sMarker; p.transform.Find("sg1") = eMarker;
131
+ p.transform.Find("smallflat") = sMarker; p.transform.Find("smalflat1") = eMarker;
120
132
 
121
133
  }
122
134
 

5

タグの編集

2015/11/27 10:04

投稿

cdecda
cdecda

スコア11

test CHANGED
File without changes
test CHANGED
File without changes

4

ソースコードの編集

2015/11/27 07:55

投稿

cdecda
cdecda

スコア11

test CHANGED
File without changes
test CHANGED
@@ -62,7 +62,7 @@
62
62
 
63
63
 
64
64
 
65
- if (Other.tag = "E") {
65
+ if (Other.tag == "E") {
66
66
 
67
67
  isTriggeredpy = true; isTriggeredcp1 = true;
68
68
 

3

ソースコードの編集

2015/11/27 07:02

投稿

cdecda
cdecda

スコア11

test CHANGED
File without changes
test CHANGED
@@ -50,7 +50,9 @@
50
50
 
51
51
  private bool isTriggeredpy;
52
52
 
53
+ Transform position; Object e; Object e2; Transform p;
54
+
53
- Transform position; Object e; Object e2; Transform p; Transform sMarker; Transfor m eMarker; GameObject Target;
55
+ Transform sMarker; Transform eMarker; GameObject Target;
54
56
 
55
57
 
56
58
 

2

エラーメッセージの編集

2015/11/27 06:55

投稿

cdecda
cdecda

スコア11

test CHANGED
File without changes
test CHANGED
@@ -13,8 +13,6 @@
13
13
 
14
14
 
15
15
  ###発生している問題・エラーメッセージ
16
-
17
- error CS0029: Cannot implicitly convert type `string' to `bool'
18
16
 
19
17
  error CS0029: Cannot implicitly convert type `UnityEngine.GameObject' to `UnityEngine.Transform'
20
18
 

1

エラーメッセージの編集

2015/11/27 06:50

投稿

cdecda
cdecda

スコア11

test CHANGED
File without changes
test CHANGED
@@ -14,31 +14,31 @@
14
14
 
15
15
  ###発生している問題・エラーメッセージ
16
16
 
17
- Assets/py.cs(15,17): error CS0029: Cannot implicitly convert type `string' to `bool'
17
+ error CS0029: Cannot implicitly convert type `string' to `bool'
18
18
 
19
- Assets/py.cs(16,70): error CS0029: Cannot implicitly convert type `UnityEngine.GameObject' to `UnityEngine.Transform'
19
+ error CS0029: Cannot implicitly convert type `UnityEngine.GameObject' to `UnityEngine.Transform'
20
20
 
21
- Assets/py.cs(16,102): error CS0029: Cannot implicitly convert type `UnityEngine.Vector3' to `UnityEngine.Transform'
21
+ error CS0029: Cannot implicitly convert type `UnityEngine.Vector3' to `UnityEngine.Transform'
22
22
 
23
- Assets/py.cs(24,27): warning CS0219: The variable `eMarker' is assigned but its value is never used
23
+ warning CS0219: The variable `eMarker' is assigned but its value is never used
24
24
 
25
- Assets/py.cs(23,27): warning CS0219: The variable `sMarker' is assigned but its value is never used
25
+ warning CS0219: The variable `sMarker' is assigned but its value is never used
26
26
 
27
- Assets/py.cs(40,37): error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
27
+ error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
28
28
 
29
- Assets/py.cs(40,71): error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
29
+ error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
30
30
 
31
- Assets/py.cs(44,40): error CS0119: Expression denotes a `type', where a `variable', `value' or `method group' was expected
31
+ error CS0119: Expression denotes a `type', where a `variable', `value' or `method group' was expected
32
32
 
33
- Assets/py.cs(44,25): error CS1502: The best overloaded method match for `UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)' has some invalid arguments
33
+ error CS1502: The best overloaded method match for `UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)' has some invalid arguments
34
34
 
35
- Assets/py.cs(44,25): error CS1503: Argument `#2' cannot convert `object' expression to type `UnityEngine.Vector3'
35
+ error CS1503: Argument `#2' cannot convert `object' expression to type `UnityEngine.Vector3'
36
36
 
37
- Assets/py.cs(44,94): error CS0119: Expression denotes a `type', where a `variable', `value' or `method group' was expected
37
+ error CS0119: Expression denotes a `type', where a `variable', `value' or `method group' was expected
38
38
 
39
- Assets/py.cs(44,80): error CS1502: The best overloaded method match for `UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)' has some invalid arguments
39
+ error CS1502: The best overloaded method match for `UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)' has some invalid arguments
40
40
 
41
- Assets/py.cs(44,80): error CS1503: Argument `#2' cannot convert `object' expression to type `UnityEngine.Vector3'
41
+ error CS1503: Argument `#2' cannot convert `object' expression to type `UnityEngine.Vector3'
42
42
 
43
43
  ###ソースコード
44
44