示例#1
0
 void Start()
 {
     checkLives = GameObject.Find("Lives").GetComponent <CheckpointLives>();         //Find and assign the Script associated with the game object
     char2D     = GameObject.Find("Player").GetComponent <CharController2D>();       //Find and assign the Script associated with the game object
     invisWall  = GameObject.Find("BossWall").GetComponent <InvisWall>();            //Find and assign the Script associated with the game object
     bossScene1 = GameObject.Find("BossTrigger").GetComponent <BossScene1>();        //Find and assign the Script associated with the game object
     hitCount   = checkLives.lives;
 }