void Start()
    {
        rb         = GetComponent <Rigidbody2D>();
        animationp = GetComponent <Animationp>();

        gamemanager = FindObjectOfType <Gamemanager>();

        audio = GetComponent <AudioSource>();

        localscalx = transform.localScale.x;
    }
Beispiel #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>();
    }
Beispiel #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>();
    }
 void Start()
 {
     shootpoint  = transform.GetChild(0);
     animationp  = GetComponent <Animationp>();
     gamemanager = FindObjectOfType <Gamemanager>();
 }