// Start is called before the first frame update void Start() { GameObject playButton = GameObject.Find("Play Button"); buttonScript = playButton.GetComponent <PlayButtonController>(); spriteRenderer = GetComponent <SpriteRenderer>(); }
// Update is called once per frame void Start() { GameObject playButton = GameObject.Find("Play Button"); buttonScript = playButton.GetComponent <PlayButtonController>(); GameObject counter = GameObject.Find("Countdown"); countdownScript = counter.GetComponent <countdown>(); }
//Initialize vars and managers void Start() { PropertiesPanel.SetActive(true); GlobOptionPanel.SetActive(true); socas = Selected.GetComponent <SelectedObjectControllerAndSelecter>(); rbm = Selected.GetComponent <RigidBodyManager>(); gm = gameObject.GetComponent <GravityManager>(); pbc = GameObject.FindWithTag("PlayButton").GetComponent <PlayButtonController>(); }
private void Start() { instance = this; }