// Use this for initialization void Start() { AudioSource = gameObject.AddComponent<AudioSource>(); SlidingAudioSource = gameObject.AddComponent<AudioSource>(); SlidingAudioSource.clip = slidingAudio; SlidingAudioSource.loop = true; player = GetComponent<PlayerControllerCore> (); character = GetComponent<CharacterController>(); grab = GetComponent<PlayerObjectGrab>(); inspect = GetComponent<PlayerObjectInspect>(); }
// Use this for initialization void Start() { character = GetComponent<CharacterController>(); controller = GetComponent<PlayerControllerCore>(); }