Ejemplo n.º 1
0
        private void Start()
        {
            groundLayer = LayerMask.NameToLayer("Ground");

            anim = GetComponentInChildren <Animator>();
            sfx  = GetComponentInChildren <PlayerSoundEffects>();
        }
Ejemplo n.º 2
0
 protected void Start()
 {
     anim       = GetComponentInChildren <Animator>();
     controller = GetComponent <PlayerController>();
     sfx        = GetComponentInChildren <PlayerSoundEffects>();
 }