// Use this for initialization void Start() { transform.position = lanes[startLane].transform.position; currentLane = startLane; pause = FindObjectOfType <All_Screens_Manager>(); audi = GetComponent <AudioSource>(); }
// Use this for initialization void Start() { transform.position = buttons[startButton].transform.position; currentButton = startButton; rb = GetComponent <Rigidbody2D>(); gManager = FindObjectOfType <SwitchesGameManager>(); pause = FindObjectOfType <All_Screens_Manager>(); }
// Use this for initialization void Start() { voterHold.SetActive(false); enemyVoterHold.SetActive(false); gManager = FindObjectOfType <FalkGameManager>(); rb = GetComponent <Rigidbody2D>(); anim = GetComponent <Animator>(); pause = FindObjectOfType <All_Screens_Manager>(); audi = GetComponent <AudioSource>(); }
// Use this for initialization void Start() { transform.position = lanes[startLane].transform.position; currentLane = startLane; sprite = GetComponent <SpriteRenderer>(); rb = GetComponent <Rigidbody2D>(); gManager = FindObjectOfType <EmuGameManager>(); anim = GetComponent <Animator>(); pause = FindObjectOfType <All_Screens_Manager>(); audi = GetComponent <AudioSource>(); }
// Use this for initialization void Start() { gManager = FindObjectOfType <EmuGameManager>(); rb = GetComponent <Rigidbody2D>(); anim = GetComponent <Animator>(); pause = FindObjectOfType <All_Screens_Manager>(); audi = GetComponent <AudioSource>(); int clipToPlay = Random.Range(0, wark.Length); audi.PlayOneShot(wark[clipToPlay], 1f); }
void Awake() { ameAnthem.SetActive(false); rusAnthem.SetActive(false); ruskieswin.SetActive(false); muricawin.SetActive(false); drawPaper.SetActive(false); drawAnthem.SetActive(false); afterGameButtons.SetActive(false); pause = FindObjectOfType <All_Screens_Manager>(); startTime = Time.time; gameStart = true; }
// Use this for initialization void Start() { ameAnthem.SetActive(false); rusAnthem.SetActive(false); ruskieswin.SetActive(false); muricawin.SetActive(false); drawPaper.SetActive(false); drawAnthem.SetActive(false); gameEndButtons.SetActive(false); pause = FindObjectOfType <All_Screens_Manager>(); startTime = Time.time; gameNotStarted = true; }
void Awake() { ausAnthem.SetActive(false); emuAnthem.SetActive(false); ausWinPaper.SetActive(false); emuWinPaper.SetActive(false); drawPaper.SetActive(false); drawAnthem.SetActive(false); afterGameButtons.SetActive(false); pause = FindObjectOfType <All_Screens_Manager>(); startTime = Time.time; gameNotStarted = true; }
// Use this for initialization void Awake() { if (instance == null) { instance = this; } else if (instance != null) { Destroy(gameObject); } DontDestroyOnLoad(gameObject); blueHand.SetActive(false); redHand.SetActive(false); pauseMenu.SetActive(false); }
//private AudioSource audi; //private bool moving; // Use this for initialization void Start() { rb = GetComponent <Rigidbody2D>(); pause = FindObjectOfType <All_Screens_Manager>(); //audi = GetComponent<AudioSource>(); }
// Use this for initialization void Start() { rb = GetComponent <Rigidbody2D>(); anim = GetComponent <Animator>(); pause = FindObjectOfType <All_Screens_Manager>(); }
// Use this for initialization void Start() { pause = FindObjectOfType <All_Screens_Manager>(); gManager = FindObjectOfType <EmuGameManager>(); rb = GetComponent <Rigidbody2D>(); }
// Use this for initialization void Start() { uiText = GetComponent <Text>(); pause = FindObjectOfType <All_Screens_Manager>(); }
// Use this for initialization void Start() { pause = FindObjectOfType <All_Screens_Manager>(); pause.endGame = true; }