Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     //BoxCollider2D[] AllTheCollider = GetComponents<BoxCollider2D>();
     //foreach (BoxCollider2D zeBox in AllTheCollider)
     //{
     //    // If the collider isTrigger
     //    if (zeBox.isTrigger)
     //    {
     //        theMeleeAttackCollide = zeBox;
     //        break;
     //    }
     //}
     heroMeleeAnim = GetComponent <HeroAnimateScript>();
     heroMove      = GetComponent <HeroesMovement>();
     soundEffects  = GameObject.FindGameObjectWithTag("AudioManager").GetComponent <SoundEffectsManager>();
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     soundEffects    = GameObject.FindGameObjectWithTag("AudioManager").GetComponent <SoundEffectsManager>();
     directionOfHero = GetComponent <HeroesMovement>();
     heroAnimator    = GetComponent <HeroAnimateScript>();
 }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     heroPhysics  = GetComponent <Rigidbody2D>();
     heroAnimator = GetComponent <HeroAnimateScript>();
 }