-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGame_Control.cs
More file actions
30 lines (26 loc) · 798 Bytes
/
Game_Control.cs
File metadata and controls
30 lines (26 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Game_Control : MonoBehaviour {
public bool roads = false;
public int speed = 10;
public GameObject Segment;
// Use this for initialization
void Start () {
if (roads == false) {
Instantiate(Segment,new Vector3(0,0,38),Quaternion.identity);
Instantiate(Segment,new Vector3(0,0,30),Quaternion.identity);
Instantiate(Segment,new Vector3(0,0,22),Quaternion.identity);
Instantiate(Segment,new Vector3(0,0,14),Quaternion.identity);
Instantiate(Segment,new Vector3(0,0,6),Quaternion.identity);
Instantiate(Segment,new Vector3(0,0,-2),Quaternion.identity);
roads = true;
}
}
public void set_health()
{
}
// Update is called once per frame
void Update () {
}
}