示例#1
0
 public void StartPlacingRoad()
 {
     isPlacing = true;
     newRoad = Network.Instantiate(road, new Vector3(0, 0, 0), Quaternion.identity, 0) as GameObject;
     newRoad.transform.parent = gameObject.transform;
     drawRoad = newRoad.GetComponent<DrawRoad>();
 }
示例#2
0
文件: PlaceRoad.cs 项目: hamodm/TDG
 void PromptForRoadPlacement()
 {
     if (GUI.Button(new Rect(0, 30, 100, 20), "Place Road"))
     {
         isPlacing = true;
         newRoad = Network.Instantiate(road, new Vector3(0,0,0), Quaternion.identity, 0) as GameObject;
         newRoad.transform.parent = gameObject.transform;
         drawRoad = newRoad.GetComponent<DrawRoad>();
     }
 }