void Start() { plyr = GameObject.Find("player"); enemy = GameObject.Find("RedEnemy"); enemy1 = GameObject.Find("PinkEnemy"); textCntr = GameObject.Find("TextController"); player = plyr.GetComponent <playerScr>(); playerSpeed = plyr.GetComponent <playerMoveScr>(); item = plyr.GetComponent <itemCount>(); text = textCntr.GetComponent <textScr>(); }
void Start() { TextController = GameObject.Find("TextController"); text = TextController.GetComponent <textScr>(); }