Game Development Reference
In-Depth Information
click on
robotAI_C#
(for C# users) or
robotAI_JS
(for JS users) to bring up its
Inspector
view and drag the game object from the
Hierarchy
view of the para-
meter, as shown in the following screenshot:
7. Finally, we will click on the
robot
object in the
Hierarchy
view to bring up its
Inspector
view and drag
robotAI_C#
(for C# user) or
robotAI_JS
(for JS user)
to the
Target Lookat
slot under
Player (script)
, as we can see in the following
screenshot: