// Use this for initialization void Start() { cube = FindObjectOfType <RotateCube>().gameObject; player = FindObjectOfType <PlayerController>(); cubeSpeechBoxAnim = cubeSpeechBox.GetComponent <Animator>(); cubeTyper = cubeSpeechBox.GetComponentInChildren <CubeTextTyper>(); for (int i = 0; i < whatToSay.Length; i++) { whatToSay[i] = whatToSay[i].Replace("\\n", "\n"); } }
void Start() { followTarget = FindObjectOfType <CubeTextFollow>().gameObject; textTyper = GetComponentInChildren <CubeTextTyper>(); particles = GetComponent <ParticleSystem>(); }