예제 #1
0
 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;
 }
예제 #2
0
파일: Life.cs 프로젝트: AcecomFCUNI/PAM
 private void Start()
 {
     life_bar = GameObject.Find("life").GetComponent <Image>();
     player1  = GameObject.Find("Tank").GetComponent <Movement_Tank>();
 }