void Start() { bc = GetComponent <BoxCollider2D>(); cc = GetComponent <CircleCollider2D>(); rb = GetComponent <Rigidbody2D>(); anim = GetComponent <Animator>(); sr = this.transform.GetChild(1).gameObject.GetComponent <SpriteRenderer>(); p1 = GameObject.Find("Tank").GetComponent <Movement_Tank>(); mov_inicial = mov_time; idle_inicial = idle_time; }
private void Start() { life_bar = GameObject.Find("life").GetComponent <Image>(); player1 = GameObject.Find("Tank").GetComponent <Movement_Tank>(); }