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"); }
void Start() { playercontroller = player.GetComponent <BrunoController>(); transform.position = new Vector2(player.transform.position.x + xOffset, transform.position.y); }