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; }
// Use this for initialization void Start() { stick = GameObject.Find("GearStick").GetComponent <GearStick>(); transform.localPosition = PosFull; }
// Use this for initialization void Start() { stick = GameObject.Find("GearStick").GetComponent <GearStick>(); }