Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        speed     = 1200;
        finished  = false;
        jumps     = 0;
        xvelocity = 0;
        yvelocity = 0;
        anim      = GetComponent <Animator>();
        if (right == null)
        {
            right = true;
        }
        hitboxmanager     = this.gameObject.GetComponentInChildren <HitBoxManager> ();
        hurtboxmanager    = this.gameObject.GetComponentInChildren <HurtBoxManager> ();
        raycastJumpLength = 0.1f;
        thrown            = false;
        hit                 = false;
        jumpReleased        = true;
        heavyAttackReleased = true;
        lightAttackReleased = true;
        dodgeReleased       = true;

        health = gameObject.GetComponent <Health> ();
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        speed = 1200;
        finished = false;
        jumps = 0;
        xvelocity = 0;
        yvelocity = 0;
        anim = GetComponent<Animator>();
        if (right == null) {
            right = true;
        }
        hitboxmanager = this.gameObject.GetComponentInChildren<HitBoxManager> ();
        hurtboxmanager = this.gameObject.GetComponentInChildren<HurtBoxManager> ();
        raycastJumpLength = 0.1f;
        thrown = false;
        hit = false;
        jumpReleased = true;
        heavyAttackReleased = true;
        lightAttackReleased = true;
        dodgeReleased = true;

        health = gameObject.GetComponent<Health> ();
    }