コード例 #1
0
    // 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>();
    }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     character = GetComponent<CharacterController>();
     controller = GetComponent<PlayerControllerCore>();
 }