Пример #1
0
 public void Awake()
 {
     gameController          = GameController.Instance();
     createSavedButtonScript = FindObjectOfType <CreateSavedRecipeButtons>();
     cameraScript            = FindObjectOfType <CameraMovement>();
     voiceScript             = FindObjectOfType <VoicePacks>();
 }
Пример #2
0
 public void Awake()
 {
     cameraScript  = FindObjectOfType <CameraMovement>();
     reviews       = new int[numberOfReviewToKeep];
     voiceScript   = FindObjectOfType <VoicePacks>();
     TileGenerator = FindObjectOfType <TextureGenerator>();
 }
Пример #3
0
 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>();
 }
Пример #4
0
 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>();
 }
Пример #5
0
 public void Awake()
 {
     voiceScript = FindObjectOfType <VoicePacks>();
 }
Пример #6
0
 public IVoicePack GetVoicePack(string voicePackItemId)
 {
     return((VoicePacks.ContainsKey(voicePackItemId)) ? (VoicePacks[voicePackItemId]) : (null));
 }