Holistic Game Development with Unity by de Byl Penny
Author:de Byl, Penny
Language: eng
Format: mobi
ISBN: 9780240819334
Publisher: Taylor & Francis
Published: 2011-11-22T16:00:00+00:00
GUI.Label(Rect (20,20,200,100), "Winner: " +winner);
if(GUI.Button (Rect (50,60,100,30), "Play Again"))
{
//reset the game
winner ="";
GameObject.Find("Car Prefab").transform.position =
playerLocation;
GameObject.Find("Player2").transform.position =
npcLocation;
GameObject.Find("Player2").GetComponent("waypoints").
currentWP =0;
}
GUI.EndGroup ();
}
}
function Update () {
}
Step 14. The preceding script uses the name of the colliding object to display the winner on the screen. Currently, both the Car Prefab and the Player2's elements are named the same. Select each chassis collider in the Hierarchy and give them different names in the Inspector.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Blood, Sweat, and Pixels by Jason Schreier(3472)
Dawn of the New Everything by Jaron Lanier(2675)
Godot 4 Game Development Cookbook by Jeff Johnson(2444)
The Art of Doom by Bethesda(2032)
Significant Zero by Walt Williams(1875)
Creative Character Design by Bryan Tillman(1826)
World of Warcraft Chronicle Volume 3 by Blizzard Entertainment(1650)
The Ultimate Roblox Book by David Jagneaux(1610)
Art Of Atari by Tim Lapetino(1557)
Pillars of Eternity Guidebook by Obsidian Entertainment(1529)
Dawn of the New Everything: Encounters with Reality and Virtual Reality by Jaron Lanier(1526)
1628927445Game by Unknown(1467)
Unreal Engine 4 Virtual Reality Projects by Kevin Mack(1459)
Unreal Engine Virtual Reality Quick Start Guide by Jessica Plowman(1436)
Mission Python by Sean McManus(1421)
The Ultimate Player's Guide to Minecraft by Stephen O'Brien(1412)
Learning D by 2015(1408)
Unity 2018 By Example by Alan Thorn(1387)
Road Games by Road Games(1360)
