void Start() { GetComponent<VirtualButtonBehaviour>().RegisterEventHandler(this); button = transform.FindChild("Button").gameObject; buttonIcon = button.GetComponentInChildren<SpriteRenderer>(); metronome = FindObjectOfType<MetronomeScript>(); }
void Start() { GetComponent<VirtualButtonBehaviour>().RegisterEventHandler(this); metronome = FindObjectOfType<MetronomeScript>(); button = transform.FindChild("Button").gameObject; playing = false; }
void Start() { head = Camera.main.GetComponent<StereoController>().Head; originalParent = pauseMenu.transform.parent; buttonText = transform.GetChild (1); buttonText.gameObject.SetActive (false); song = GameObject.FindWithTag("Song"); metronome = FindObjectOfType<MetronomeScript>(); ui = FindObjectOfType<UIScript>(); }
void Start() { head = Camera.main.GetComponent<StereoController>().Head; pauseMenu.SetActive (false); song = GameObject.FindWithTag("Song"); metronome = FindObjectOfType<MetronomeScript>(); Debug.Log ("Setting active false"); instructionsTimer = float.MinValue; SendInstructions("Tap para ir al menú"); }
void Start() { GetComponent<VirtualButtonBehaviour>().RegisterEventHandler(this); metronome = FindObjectOfType<MetronomeScript>(); }