Ejemplo n.º 1
0
    void Start()
    {
        rb         = GetComponent <Rigidbody2D>();
        animationp = GetComponent <Animationp>();

        gamemanager = FindObjectOfType <Gamemanager>();

        audio = GetComponent <AudioSource>();

        localscalx = transform.localScale.x;
    }
Ejemplo n.º 2
0
    void Start()
    {
        slider.value = maxHealth;
        animationp   = GetComponent <Animationp>();
        movement     = GetComponent <Movement>();
        rb           = GetComponent <Rigidbody2D>();
        capsule      = GetComponent <CapsuleCollider2D>();
        joystiick    = FindObjectOfType <Joystiick>();

        box = GetComponent <BoxCollider2D>();
    }
Ejemplo n.º 3
0
    void Start()
    {
        player     = GameObject.FindGameObjectWithTag("Player");
        animationp = FindObjectOfType <Animationp>();
        // target = GameObject.FindWithTag("Player").transform;

        anim = GetComponent <ZombieAnimController>();

        box     = GetComponent <BoxCollider2D>();
        capsule = GetComponent <CapsuleCollider2D>();

        play = GetComponent <Animation>();
    }
Ejemplo n.º 4
0
 void Start()
 {
     shootpoint  = transform.GetChild(0);
     animationp  = GetComponent <Animationp>();
     gamemanager = FindObjectOfType <Gamemanager>();
 }