Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        barnMove       = GetComponent <BarnMove> ();
        state          = CharState.Idle;
        barnAttack     = GetComponentInChildren <BarnAttack> ();
        gameObject.tag = "Player";

        animator = GetComponent <BarnAnimation>();
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        rbody            = rigidbody2D;
        rbody.fixedAngle = true;

        animator         = GetComponent <BarnAnimation>();
        controller       = GetComponent <BearController>();
        wallGrabCollider = GetComponentInChildren <WallGrabCollider> ();
    }