void Start() { rb = GetComponent <Rigidbody2D>(); animationp = GetComponent <Animationp>(); gamemanager = FindObjectOfType <Gamemanager>(); audio = GetComponent <AudioSource>(); localscalx = transform.localScale.x; }
void Start() { slider.value = maxHealth; animationp = GetComponent <Animationp>(); movement = GetComponent <Movement>(); rb = GetComponent <Rigidbody2D>(); capsule = GetComponent <CapsuleCollider2D>(); joystiick = FindObjectOfType <Joystiick>(); box = GetComponent <BoxCollider2D>(); }
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>(); }