Ejemplo n.º 1
0
 private void Start()
 {
     healthAmount = new Transform[GameObject.Find("HHGP").transform.GetChild(1).childCount];
     playerPos    = GameObject.FindGameObjectWithTag("R_hand_container").transform;
     player       = GameObject.FindGameObjectWithTag("PLAYER").GetComponent <MoveRotation1>();
     spawn        = GameObject.FindObjectOfType <Spawn>();
     healthInt    = player.GetComponent <MoveRotation1>().crrentHp;
 }
Ejemplo n.º 2
0
 void Start()
 {
     player = GameObject.FindGameObjectWithTag("PLAYER").GetComponent <MoveRotation1>();
 }