// Start when the scrip is being loaded private void Awake() { begin = transform.position; Motion = SMotion; // adding sound when starting the game music = GetComponent <FloorAudio>(); }
// Start when the scrip is being loaded void Awake() { music = GetComponent <FloorAudio>(); }