void Start() { _inventory = GameObject.FindGameObjectWithTag("Inventory").GetComponent <InventoryLogic>(); _firstCoin = _inventory.ReturnToolDb().ToolDatabase[1]; _writer = GetComponentInParent <DescriptionWriter>(); _tutorial = GetComponent <TutorialVoice>(); _leadMover = GameObject.FindGameObjectWithTag("CameraLead").GetComponent <CameraLeadController>(); _firstClick = GameObject.FindGameObjectWithTag("Guard").GetComponent <FirstClick>(); _cameraFx = GameObject.FindGameObjectWithTag("CameraGroup").GetComponent <CameraController>(); _tutFunc = new CommonTutorialFunctions(); _key = _tutFunc.GetLootables("key"); }
void Start() { GameObject _description = GameObject.FindGameObjectWithTag("DescriptionBox"); _tutorial = _description.GetComponent <TutorialVoice>(); _writer = _description.GetComponentInParent <DescriptionWriter>(); _leadMover = GameObject.FindGameObjectWithTag("CameraLead").GetComponent <CameraLeadController>(); _cameraFx = GameObject.FindGameObjectWithTag("CameraGroup").GetComponent <CameraController>(); _player = GameObject.FindGameObjectWithTag("Player"); _tutFunc = new CommonTutorialFunctions(); _coin = _tutFunc.GetLootables("coin"); }