示例#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));
 }