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; }
void Start() { player = GameObject.FindGameObjectWithTag("PLAYER").GetComponent <MoveRotation1>(); }