void Start() { mRestaurantScript = GameManagerScript.GetInstance().GetComponent <RestaurantScript>(); PopulateSurvivorsList(); PopulateWinnersList(); }
void Start() { mRestaurantScript = GameManagerScript.GetInstance().GetComponent <RestaurantScript>(); mTimeLeft = TURN_TIME; mCountingDown = true; }
void Start() { mRestaurantScript = GameManagerScript.GetInstance().GetComponent <RestaurantScript>(); mPlayerCount = (int)mPlayerCountSlider.value; mPlayerCountSlider.onValueChanged.AddListener(OnChangePlayerCount); mIsCustomRoles = false; InitToggledRoles(); InitUserRoles(); }
void Start() { //mTurnManagerScript = GameManagerScript.GetInstance().GetComponent<TurnManagerScript>(); mRestaurantScript = GameManagerScript.GetInstance().GetComponent <RestaurantScript>(); //mPlayerList = GameManagerScript.GetInstance().GetComponent<TurnManagerScript>().getPlayers(); mAngleBetweenPlayers = 360.0f / mRestaurantScript.getAlivePlayers().Count; mRotation = Vector3.zero; mPrevRotation = 0; mAccumulatedAngle = 0; }
void Start() { mTurnManagerScript = GameManagerScript.GetInstance().GetComponent <TurnManagerScript>(); mRestaurantScript = GameManagerScript.GetInstance().GetComponent <RestaurantScript>(); List <Player> players = mRestaurantScript.getAlivePlayers(); if (mTurnManagerScript.GetCurrentPlayerIndex() <= players.Count - 1) { ShowPlayerToPassTo(); } }
void Start() { mTurnManagerScript = GameManagerScript.GetInstance().GetComponent <TurnManagerScript>(); mRestaurantScript = GameManagerScript.GetInstance().GetComponent <RestaurantScript>(); mInputPrefab = Resources.Load <InputField>("UsernameField"); mUsernames = new List <string>(); mUsernameFields = new List <InputField>(); mValidUserRoles = Player.sValidRoles; PlaceLabelsInCircle(); }
void Start() { mDeliberationPanel.gameObject.SetActive(true); mVotingPanel.gameObject.SetActive(false); mRestaurantScript = GameManagerScript.GetInstance().GetComponent <RestaurantScript>(); mPlatePrefab = Resources.Load <Button>("Dinner Plate"); mPlayerPrefab = Resources.Load <Button>("UserButton"); mTiePrefab = Resources.Load <Button>("Tie Button"); mPlayerNamecards = new List <Button>(); mPlayerMeals = new List <Button>(); }
void Start() { mRestaurantScript = GameManagerScript.GetInstance().GetComponent <RestaurantScript>(); mPlatePrefab = Resources.Load <Button>("Dinner Plate"); mPlayerPrefab = Resources.Load <Button>("UserButton"); mPlayerNamecards = new List <Button>(); mPlayerMeals = new List <Button>(); PlacePlayersInCircle(); PlacePlatesInCircle(); UpdateMealColors(); }
// Use this for initialization void Start() { mTurnManagerScript = GameManagerScript.GetInstance().GetComponent <TurnManagerScript>(); mRestaurantScript = GameManagerScript.GetInstance().GetComponent <RestaurantScript>(); //players = GameManagerScript.sRestaurant.getAllPlayers(); mUserButtonPrefab = Resources.Load <Button>("UserButton"); mPlayerNamecards = new List <Button>(); ShowUsername(); //In the future we can add cool artwork here for each role and stuff. ShowRole(); //PerformRoleAction(); }
void Start() { mRestaurantScript = GameManagerScript.GetInstance().GetComponent <RestaurantScript>(); mRestaurantScript.SetInvestigatePanel(mMealPeekPanel); mGotItButton.onClick.AddListener(delegate { mRestaurantScript.TurnOffInvestigatePanel(); }); mPlatePrefab = Resources.Load <Button>("Dinner Plate"); mPlayerPrefab = Resources.Load <Button>("UserButton"); mIceCreamPrefab = Resources.Load <GameObject> ("Ice Cream"); mPlayerNamecards = new List <Button>(); mPlayerMeals = new List <Button>(); PlacePlayersInCircle(); PlacePlatesInCircle(); UpdateMealColors(); }
// Use this for initialization void Start() { mTurnManagerScript = GameManagerScript.GetInstance().GetComponent <TurnManagerScript>(); mRestaurantScript = GameManagerScript.GetInstance().GetComponent <RestaurantScript>(); //players = GameManagerScript.sRestaurant.getAllPlayers(); mUserButtonPrefab = Resources.Load <Button>("UserButton"); mPlayerNamecards = new List <Button>(); ShowUsername(); //In the future we can add cool artwork here for each role and stuff. ShowRole(); mDoneWithActionButton.onClick.AddListener(OnConfirmButtonClicked); mCourseTitle.text = mTurnManagerScript.mCurrentRound.ToString() + " ROUND"; if (!showRolePanel) { mStartRoundPanel.gameObject.SetActive(true); mRolePanel.gameObject.SetActive(false); mActionPanel.gameObject.SetActive(false); mLazySusan.SetActive(false); } else { mStartRoundPanel.gameObject.SetActive(false); mRolePanel.gameObject.SetActive(true); mActionPanel.gameObject.SetActive(false); mLazySusan.SetActive(false); } mActionButtonLocation = mActionButton.transform.position; //PerformRoleAction(); }
void Start() { mRestaurantScript = GameManagerScript.GetInstance().GetComponent <RestaurantScript>(); }