Пример #1
0
 // Use this for initialization
 void Start()
 {
     keeper = GameObject.Find ("ScoreKeeper");
     start_time = (Score_Keeper)keeper.GetComponent (typeof(Score_Keeper));
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     keeper = GameObject.Find ("ScoreKeeper");
     fuel = (FuelGauge) camera.GetComponent(typeof(FuelGauge));
     score = (Score_Keeper) keeper.GetComponent(typeof(Score_Keeper));
 }