void Start() { //Get other objects gameStatManager = GameObject.Find("GameStatManager").GetComponent <GameStatManager>(); //UpdateSharedReward(); }
void Start() { //Get other objects gameStatManager = GameObject.Find("GameStatManager").GetComponent <GameStatManager>(); bitcoinIF = transform.Find("TradeInputField/Text").GetComponent <Text>(); warningText = transform.Find("WarningText").GetComponent <Text>(); }
public void Awake() { //Singleton gameInitializer = this; //Get other objects gameStatManager = GetComponent <GameStatManager>(); }
void Start() { //Get other objects gameStatManager = GameObject.Find("GameStatManager").GetComponent <GameStatManager>(); poolFrame = Resources.Load <GameObject>("Prefab/PoolFrame"); confirmPanel = Resources.Load <GameObject>("Prefab/ConfirmPanel"); ShowPool(); }
void Start() { //Get other objects gameStatManager = GameObject.Find("GameStatManager").GetComponent <GameStatManager>(); electricityManager = GameObject.Find("LocalManagerContainer").GetComponent <ElectricityManager>(); //Initialize //UpdateChance(); }
void Start() { //Get other objects gameStatManager = GameObject.Find("GameStatManager").GetComponent <GameStatManager>(); yesPanel = transform.Find("YesPool").gameObject; yesPanel.SetActive(false); noPanel = transform.Find("NoPool").gameObject; noPanel.SetActive(false); }
void Start() { gameStatManager = GameObject.Find("GameStatManager").GetComponent <GameStatManager>(); dateTimeManager = GameObject.Find("Interface/DateContainer").GetComponent <DateTimeManager>(); okButton = newPanel.transform.Find("Button").GetComponent <Button>(); okButton.onClick.AddListener(ClosePanel); badgePos = newPanel.transform.Find("BadgePlacer"); newPanel.SetActive(false); }
void Start() { //Get other objects gameStatManager = GameObject.Find("GameStatManager").GetComponent <GameStatManager>(); //Intialize bitcoinValueHistory = gameStatManager.GetBitcoinValueHistory(); bitcoinValue = gameStatManager.GetBitcoinValue(); //bitcoinValueHistory.Enqueue(bitcoinValue); //gameStatManager.SetBitcoinValueHistory(bitcoinValueHistory); }
void Start() { //Singleton blockManager = this; //Get other objects gameStatManager = GameObject.Find("GameStatManager").GetComponent <GameStatManager>(); //Initialize //UpdateBlock(); }
void Start() { gameStatManager = GameObject.Find("GameStatManager").GetComponent <GameStatManager>(); eventTime = new DateTime[] { new DateTime(2010, 1, 1), new DateTime(2010, 1, 3) }; UpdateTimeline(); }
void Start() { //Singleton networkManager = this; //Get other objects gameStatManager = GameObject.Find("GameStatManager").GetComponent <GameStatManager>(); //Initialize globalHashPower = gameStatManager.GetGlobalHashPower(); }
void Start() { //Get other objects gameStatManager = GameObject.Find("GameStatManager").GetComponent <GameStatManager>(); bitcoinText = transform.Find("DisplayContainer/PriceValue").GetComponent <Text>(); elevatorText = transform.Find("DisplayContainer/ElevatorText").GetComponent <Text>(); historyPanel = transform.Find("HistoryPanel/ScrollView/Viewport"); //Initialize currentDay = gameStatManager.GetTotalDay(); UpdateHistory(); }
void Start() { //Get other objects gameStatManager = GameObject.Find("GameStatManager").GetComponent <GameStatManager>(); //Initialize; monthlyElectricityFee = gameStatManager.GetMonthlyElectricityFee(); currentMonth = gameStatManager.GetDateTime().Month; //To GSM //UpdateDailyElectricity(gameStatManager.GetWatt()); }
void Awake() { //Our singleton pattern if (instance != null && instance != this) { // destroy the gameobject if an instance of this exist already Destroy(gameObject); } else { //Set our instance to this object/instance instance = this; } }
void Start() { //Get other objects gameStatManager = GameObject.Find("GameStatManager").GetComponent <GameStatManager>(); profileName = transform.Find("ProfileName").GetComponent <Text>(); cash = transform.Find("CashAmount").GetComponent <Text>(); bitcoin = transform.Find("BitcoinAmount").GetComponent <Text>(); //Set profile name profileName.text = gameStatManager.GetProfileName(); //Initialize cash.text = gameStatManager.GetCash().ToString("N2"); bitcoin.text = gameStatManager.GetBitcoin().ToString(); }
void Start() { //Get other objects gameStatManager = GameObject.Find("GameStatManager").GetComponent <GameStatManager>(); imageList = new Image[12]; for (int i = 0; i < imageList.Length; i++) { imageList[i] = badgePanel.transform.Find("BadgeContainer/" + (i + 1) + "/Image").GetComponent <Image>(); } badgePanel.SetActive(false); UpdateBadgeList(); }
void Start() { //Get other objects gameStatManager = GameObject.Find("GameStatManager").GetComponent <GameStatManager>(); //Get prefab itemFrame = Resources.Load <GameObject>("Prefab/InventoryItem"); computerGrid = transform.Find("InventoryPanel/ComputerFrame/Grid"); graphicCardGrid = transform.Find("InventoryPanel/GraphicCardFrame/Grid"); asicGrid = transform.Find("InventoryPanel/AsicFrame/Grid"); inventoryPanel = GameObject.Find("InventoryPanel"); inventoryPanel.SetActive(false); }
void Start() { //Get other objects gameStatManager = GameObject.Find("GameStatManager").GetComponent <GameStatManager>(); miningInfoPanel = GameObject.Find("MiningInfoPanel"); //Initialize miningInfoPanel.SetActive(false); UpdateSpeed(); UpdateWatt(); UpdateDailyElectricity(); UpdateMonthlyElectricityFee(); UpdateBlockReward(); UpdateSharedReward(); UpdateChance(); UpdateExpectedEarning(); }
void Start() { //Get other objects gameStatManager = GameObject.Find("GameStatManager").GetComponent <GameStatManager>(); statusText = transform.parent.Find("StatusText").GetComponent <Text>(); computerGrid = transform.Find("ComputerGrid").gameObject; graphicCardGrid = transform.Find("GraphicCardGrid").gameObject; asicGrid = transform.Find("AsicGrid").gameObject; //Get prefab itemFrame = Resources.Load <GameObject>("Prefab/ItemFrame"); //Fill item values AddItem(); //Show computer grid by default graphicCardGrid.SetActive(false); asicGrid.SetActive(false); }
void OnSceneLoaded(Scene scene, LoadSceneMode mode) { if (scene.name == "CoreGameScene") { //Get other objects gameStatManager = GameObject.Find("GameStatManager").GetComponent <GameStatManager>(); gameInitializer = GameObject.Find("GameStatManager").GetComponent <GameInitializer>(); tutorialManager = GameObject.Find("TutorialCanvas").GetComponent <TutorialManager>(); if (IsNewGame) { gameInitializer.Init(profileName); tutorialManager.AskTutorial(); } else { gameInitializer.Init(""); gameStatManager.LoadGame(result); } } }
void Start() { //Singleton dateManager = this; //Get other objects gameStatManager = GameObject.Find("GameStatManager").GetComponent <GameStatManager>(); displayDate = transform.Find("Date").gameObject.GetComponent <Text>(); displayTime = transform.Find("Time").gameObject.GetComponent <Text>(); timeScaleImage = transform.Find("TimeScale").gameObject.GetComponent <Image>(); //Initialize dateTime = gameStatManager.GetDateTime(); endTime = new DateTime(2140, 01, 01); //Set default Time.timeScale = 1; timeScaleImage.sprite = slow; counter = 0f; dayCounter = 0; }
void Awake() { //Singleton gameStatManager = this; }
void Start() { Question q1 = new Question( "Which of the following is the feature of Blockchain?", new string[] { "It is a centralized network where every block is passed to the central point for hashing", "Every user contains a copy of the blockchain", "Each block is hashed in aorund 10 seconds" }, 1 ); Question q2 = new Question( "Which of the following is NOT a component of a block?", new string[] { "Content", "Hash of the next block", "Hash of this block" }, 1 ); Question q3 = new Question( "Successfully mining a block will reward user with _____.", new string[] { "Free coupons", "Money", "Bitcoin" }, 2 ); Question q4 = new Question( "By comparing different mining equipment:", new string[] { "ASIC has the best hashrate among all mining equipment", "Computer has better hashing power than ASIC", "ASIC is not designed to mine cryptocurrencies" }, 0 ); Question q5 = new Question( "Which of the following is a purpose of a mining pool?", new string[] { "To gather computer resources to increase chance of mining bitcoin", "To modify the power of mining equipment to increase hashing power", "To identify some faulty blocks in the network and reject them" }, 0 ); questionList = new Question[] { q1, q2, q3, q4, q5 }; //Get other objects gameStatManager = GameObject.Find("GameStatManager").GetComponent <GameStatManager>(); dateTimeManager = GameObject.Find("Interface/DateContainer").GetComponent <DateTimeManager>(); //Set choices onclick listerner choiceList[0].onClick.AddListener(() => ClickAnswer(0)); choiceList[1].onClick.AddListener(() => ClickAnswer(1)); choiceList[2].onClick.AddListener(() => ClickAnswer(2)); //Set confirm button confirmButton = transform.Find("OKButton").gameObject; confirmButton.SetActive(false); //Set check text checkText = transform.Find("CheckText").GetComponent <Text>(); //Close question panel questionContainer.SetActive(false); //ShowQuestion(); }
void Start() { //Get other objects gameStatManager = GameObject.Find("GameStatManager").GetComponent <GameStatManager>(); coinSonud = GameObject.Find("AudioObject/CoinSound").GetComponent <AudioSource>(); }