// Use this for initialization void Start() { this.camera = GameObject.Find("Main Camera"); this.player = GameObject.Find ("Player"); this.mapGenerator = GameObject.Find ("Map Generator"); this.audioDelegate = GameObject.Find ("Audio Delegate"); this.cameraController = camera.GetComponent<CameraController>(); this.playerController = player.GetComponent<PlayerController>(); this.torchPlacer = player.GetComponent<TorchPlacer>(); this.mapGenScript = mapGenerator.GetComponent<MapGenerator>(); this.audioController = audioDelegate.GetComponent<AudioController>(); }
// Use this for initialization void Start() { this.camera = GameObject.Find("Main Camera"); this.player = GameObject.Find ("Player"); this.mapGenerator = GameObject.Find ("Map Generator"); this.audioDelegate = GameObject.Find ("Audio Delegate"); this.exit = GameObject.Find ("Exit"); // this.rockSpawnPoint = GameObject.Find ("Rock Spawn").transform; this.cameraController = camera.GetComponent<CameraController>(); this.playerController = player.GetComponent<PlayerController>(); this.torchPlacer = player.GetComponent<TorchPlacer>(); this.mapGenScript = mapGenerator.GetComponent<MapGenerator>(); this.audioController = audioDelegate.GetComponent<AudioController>(); }