// Use this for initialization void Start() { Instance = this; //panels myPrivatePanel = GameObject.Find(PanelNames.MyPrivatePanel); myActivePanel = GameObject.Find(PanelNames.MyActivePanel); myLeaderboardPanel = GameObject.Find(PanelNames.MyLeaderboardPanel); myPublicPanel = GameObject.Find(PanelNames.MyPublicPanel); //text createStatusText = GameObject.Find("CreateStatusText").GetComponent <Text> (); tournamentDescriptionText = GameObject.Find("TournamentDescriptionText").GetComponent <Text> (); prizeText = GameObject.Find("PrizeText"); opponentsText = GameObject.Find("OpponentsText"); gTokensWillHaveText = GameObject.Find("GTokensWillHaveText").GetComponent <Text>(); TacoCreateFee = GameObject.Find("TacoCreateFee"); TacoCurrencyText = GameObject.Find("TacoCurrencyText").GetComponent <Text>(); TacoCreateGToken = GameObject.Find("TacoCreateGToken"); addGTokensText = GameObject.Find("AddGTokensText").GetComponent <Text>(); // misc playersToggle = GameObject.Find("PlayersToggle"); feeToggle = GameObject.Find("FeeToggle"); structureToggle = GameObject.Find("StructureToggle"); opponentsToggle = GameObject.Find("OpponentsToggle"); gameToggle = GameObject.Find("GameToggle"); timeRemainingToggle = GameObject.Find("TimeRemainingToggle"); InviteFriendsButton = GameObject.Find("InviteFriendsButton"); currencyToConvertToggle = GameObject.Find("CurrencyToConvertToggle"); myActiveTournamentsButton = GameObject.Find("MyActiveTournamentsButton"); myPrivateTournamentsButton = GameObject.Find("MyPrivateTournamentsButton"); myPublicTournamentsButton = GameObject.Find("MyPublicTournamentsButton"); typeCurrencyToggle = GameObject.Find("TypeCurrencyToggle"); createGTokenToggle = GameObject.Find("CreateGTokenToggle"); addGTokensButton = GameObject.Find("AddGTokensButton"); CreateTournamentButton = GameObject.Find("CreateNewTournamentButton"); activeTypeCurrency(0); }
void Awake() { Instance = this; GetMoneyTextAndSetButton(); SetDefaultMoneytext(); }