Exemplo n.º 1
0
 void Start()
 {
     Mainanim = GetComponent<Animator> ();
     anim = GameObject.Find("MockleFinal").GetComponent<Animator>();
     gcc = (GroundCheckController) GameObject.Find("GroundCheck").GetComponent("GroundCheckController");
     Physics2D.IgnoreLayerCollision (LayerMask.NameToLayer("Interact"),LayerMask.NameToLayer("Ignore Raycast"),true);
     //Esto ignora la colision del personaje (Que esta en IGnore Raycast) y las semillas
 }
    // Use this for initialization
    void Start()
    {
        //General
        inputEnabled = true;

        //Autohook
        anim = GetComponent<Animator>();
        rb2d = GetComponent<Rigidbody2D> ();
        gCheck = GetComponentInChildren<GroundCheckController> ();
        sounds = GetComponents<AudioSource> ();

        // Initialize Ability Timers
        jumpTimer = jumpCoolDown;
        dashTimer = dashCoolDown;
        harpoonTimer = harpoonCoolDown;
        echoTimer = echoCoolDown;
    }