private void Start()
    {
        GearScript = GearStick.GetComponent <GearScript>();

        Dead = false;
        UnPause();
    }
 public void Pause()
 {
     Ignition.GetComponent <BoxCollider>().enabled  = false;
     GearStick.GetComponent <BoxCollider>().enabled = false;
     Time.timeScale = 0;
     PauseScreen.SetActive(true);
     Paused = true;
 }
Beispiel #3
0
 // Use this for initialization
 void Start()
 {
     stick = GameObject.Find("GearStick").GetComponent <GearStick>();
     transform.localPosition = PosFull;
 }
Beispiel #4
0
 // Use this for initialization
 void Start()
 {
     stick = GameObject.Find("GearStick").GetComponent <GearStick>();
 }