// Update is called once per frame void Update() { plyController = GameObject.FindObjectOfType <PlayerController>(); tpB = GameObject.FindObjectOfType <TpBattle>(); trash = plyController.die; toGud = tpB.op; suk(); supa(); }
public void Start() { total = 10; eHp = total; ran = false; pController = GameObject.FindObjectOfType <PlayerController>(); buttonManager = GameObject.FindObjectOfType <ButtonManager>(); hs = GameObject.FindObjectOfType <HealthShow>(); tp = GameObject.FindObjectOfType <TpBattle>(); bSpin = GameObject.Find("BallSpin").GetComponent <Text>(); wave = GameObject.Find("Wave").GetComponent <Text>(); heal = GameObject.Find("Heal").GetComponent <Text>(); run = GameObject.Find("Run").GetComponent <Text>(); }