示例#1
0
 void Start()
 {
     pinSetterController = GameObject.FindObjectOfType <PinSetterController>();
     ballController      = GameObject.FindObjectOfType <BallController>();
     pinCounter          = GameObject.FindObjectOfType <PinCounter>();
     scoreDisplay        = GameObject.FindObjectOfType <ScoreDisplay>();
     levelManager        = GameManager.FindObjectOfType <LevelManager>();
 }
示例#2
0
 void Start()
 {
     standingPinsCount   = GameObject.Find("StandingPinsCount").GetComponent <Text>();
     pinSetterController = GameObject.FindObjectOfType <PinSetterController>();
     gameManager         = GameObject.FindObjectOfType <GameManager>();
 }