Game Development Reference
In-Depth Information
Transform
(second
Wall
object)
Position
X
:
14
,
Y
:
-1.47
, and
Z
:
0
Transform
(third
Wall
object)
Position
X
:
-17.8
, Y:
-1.47
, and
Z
:
0
Transform
(forth
Wall
object)
Position
X
:
17.8
,
Y
:
-1.47
, and
Z
:
0
9. Now, we will add
LargePlatform
. Let's go to
SimplePlatform
|
Resources
|
Prefabs
in the
Project
view, and click on the arrow in front of the
LargePlat-
form
prefab. Then, we will click on the
Platform_5
,
Platform_4
,
Platform_6
,
and
Platform_1
objects and set
Tag
and
Layer
to
Ground
. Then, we will drag
LargePlatform
inside the
Level
game object in the
Hierarchy
view, go to its
In-
spector
, and set it as follows:
Transform
X
:
7.34
,
Y
:
0.7
, and
Z
:
0
Position
10. Next, we add
Platform_1
. Let's go to
SimplePlatform
|
Resources
|
Prefabs
in
the
Project
view, click on the
Platform_1
object, and set
Tag
and
Layer
to
Ground
. We will see the
Change Layer
pop up; click on the
No, this object
only
button. Then, we will drag it inside the
Level
game object in the
Hierarchy
view, go to its
Inspector
, and set it as follows:
Transform
X
:
9.5
,
Y
:
-4
, and
Z
:
0
Position
11. Then, we do the same thing for
Platform_3
. Let's go to
SimplePlatform
|
Re-
sources
|
Prefabs
in the
Project
view, click on the
Platform_3
object, and set
Tag
and
Layer
to
Ground
. We will see the
Change Layer
pop up; click on the
No, this object only
button. Then, we will drag it inside the
Level
game object in
the
Hierarchy
view. Go to
Inspector
, and set it as follows: