Exemplo n.º 1
0
 private void Start()
 {
     rb2d            = gameObject.GetComponent <Rigidbody2D>();
     anim            = gameObject.GetComponent <Animator>();
     animatio        = gameObject.GetComponent <Animation>();
     curtHealth      = maxHealth = 6;
     copsWalk        = GameObject.FindGameObjectWithTag("Enemy").GetComponent <CopsWalk>();
     myCollider      = GetComponent <Collider2D>();
     jumpTimeCounter = jumpTime;
     itDied          = false;
 }
Exemplo n.º 2
0
 void Start()
 {
     player   = GameObject.FindGameObjectWithTag("Player").GetComponent <Player>();
     copswalk = GameObject.FindGameObjectWithTag("Enemy").GetComponent <CopsWalk>();
 }