Example #1
0
    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>();
    }
Example #2
0
 void Start()
 {
     TextController = GameObject.Find("TextController");
     text           = TextController.GetComponent <textScr>();
 }