// Use this for initialization void Awake() { MAX_VELOCITY_Z = 4; MAX_VELOCITY_X = 3; rigidBody = GetComponent<Rigidbody>(); takingInput = false; sprite = GetComponent<SpriteRenderer>(); scoreTimer = GameObject.Find("Score").GetComponent<Score>(); dasher = gameObject.GetComponent<Dash>(); dasher.init(rigidBody); tSpawner = GetComponent<TrailSpawner> (); tSpawner.init(.15f, "Prefabs/Trail"); ballPop = gameObject.GetComponent<AudioSource>(); }