Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        colliderDiagonal = GetComponent <Collider2D>();

        spriteRendererParent = GetComponentInParent <SpriteRenderer>();

        goombaController = goombaScript.GetComponent <GoombaController>();
    }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        spriteRendererParent = GetComponentInParent <SpriteRenderer>();
        colliderSide         = GetComponent <Collider2D>();

        goombaController = goombaScript.GetComponent <GoombaController>();

        colliderSide.enabled = true;
    }
Esempio n. 3
0
    void Start()
    {
        animator             = GetComponentInParent <Animator>();
        goomba               = GetComponentInParent <Rigidbody2D>();
        spriteRendererParent = GetComponentInParent <SpriteRenderer>();

        goombaController = goombaScript.GetComponent <GoombaController>();

        colliderTop = GetComponent <Collider2D>();
    }