Пример #1
0
 void Awake()
 {
     middlePoint     = DisplayMetricsAndroid.WidthPixels / 2;
     brunoController = bruno.GetComponent <BrunoController>();
     spawner         = levelSpawner.GetComponent <LevelBlockSpawner>();
     waitingToStart  = !spawner.isSpawnLevel;
     pauseScript     = pauseScreen.GetComponent <PauseScript>();
     Debug.Log("Bruno controls on awake");
 }
Пример #2
0
 void Start()
 {
     playercontroller   = player.GetComponent <BrunoController>();
     transform.position = new Vector2(player.transform.position.x + xOffset, transform.position.y);
 }