Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
gstuitje
RingMaster
Commits
1f5261f4
Commit
1f5261f4
authored
Feb 02, 2019
by
astatham
Browse files
Re-fixed moving target spawn bugs
parent
eca6c009
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
RingMaster/RingMaster/.vs/RingMaster/v15/sqlite3/storage.ide
View file @
1f5261f4
No preview for this file type
RingMaster/RingMaster/Assets/Scenes/PieThrowing.unity
View file @
1f5261f4
This diff is collapsed.
Click to expand it.
RingMaster/RingMaster/Assets/Scripts/PieScripts/MovingTarget.cs
View file @
1f5261f4
...
...
@@ -13,12 +13,15 @@ public class MovingTarget : MonoBehaviour {
previousPos
=
-
9f
;
if
(
gameObject
.
activeSelf
){
PieTarget
[]
targets
=
gameObject
.
transform
.
parent
.
GetComponentsInChildren
<
PieTarget
>();
for
(
int
i
=
0
;
i
<
gameObject
.
transform
.
parent
.
childCount
;
i
++)
print
(
targets
.
Length
);
for
(
int
i
=
0
;
i
<
targets
.
Length
;
i
++)
{
targets
[
i
].
gameObject
.
SetActive
(
false
);
//targets[i].gameObject.transform.GetChild(0).gameObject.SetActive(false);
}
}
gameObject
.
SetActive
(
true
);
//gameObject.transform.GetChild(0).gameObject.SetActive(true);
}
// Update is called once per frame
void
Update
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment