// Use this for initialization void Start() { player = FindObjectOfType <MovementSoc>(); Box = FindObjectOfType <TextBoxManager>(); walk = FindObjectOfType <StopWalk>(); timeStamp = Time.time + coolDown; Button2.SetActive(false); Button3.SetActive(false); GetComponent <AudioSource>().playOnAwake = false; GetComponent <AudioSource>().clip = saw; }
// Use this for initialization void Start() { player = FindObjectOfType <MovementSoc>(); ball = FindObjectOfType <SoccerBall>(); if (textfile != null) { textLines = (textfile.text.Split('\n')); } if (endAtLine == 0) { endAtLine = textLines.Length - 1; } if (isActive) { EnableTextBox(); } else { DisableTextBox(); } }
// Use this for initialization void Start() { mo = FindObjectOfType <MovementSoc>(); anim = GetComponent <Animator>(); }