public void Awake() { gameController = GameController.Instance(); createSavedButtonScript = FindObjectOfType <CreateSavedRecipeButtons>(); cameraScript = FindObjectOfType <CameraMovement>(); voiceScript = FindObjectOfType <VoicePacks>(); }
public void Awake() { cameraScript = FindObjectOfType <CameraMovement>(); reviews = new int[numberOfReviewToKeep]; voiceScript = FindObjectOfType <VoicePacks>(); TileGenerator = FindObjectOfType <TextureGenerator>(); }
public void Start() { nameInput.onEndEdit.AddListener(delegate { LockNameInput(nameInput); }); companyInput.onEndEdit.AddListener(delegate { LockCompanyInput(companyInput); }); voiceDropDown.onValueChanged.AddListener(delegate { DropdownValueChanged(voiceDropDown); }); factionScript = FindObjectOfType <FactionsUI>(); voiceScript = FindObjectOfType <VoicePacks>(); }
private GameController() { playerDataControls = Object.FindObjectOfType <Player>(); player = new PlayerData[playerCount]; for (int i = 0; i < playerCount; i++) { player[i] = new PlayerData(); player[i].SetMoney(playerDataControls.SetPlayerStartingMoney()); player[i].SetTechPointRate(playerDataControls.SetPlayerStartingTechPointRate()); Debug.Log("Player " + (i + 1) + " was created"); } activePlayer = player[0]; mainUI = Object.FindObjectOfType <UIController>(); world = Object.FindObjectOfType <TextureGenerator>(); swapPortraitScript = Object.FindObjectOfType <SwapPortraits>(); voiceScript = Object.FindObjectOfType <VoicePacks>(); }
public void Awake() { voiceScript = FindObjectOfType <VoicePacks>(); }
public IVoicePack GetVoicePack(string voicePackItemId) { return((VoicePacks.ContainsKey(voicePackItemId)) ? (VoicePacks[voicePackItemId]) : (null)); }