コード例 #1
0
    void Start()
    {
        mRestaurantScript = GameManagerScript.GetInstance().GetComponent <RestaurantScript>();

        PopulateSurvivorsList();
        PopulateWinnersList();
    }
コード例 #2
0
    void Start()
    {
        mRestaurantScript = GameManagerScript.GetInstance().GetComponent <RestaurantScript>();

        mTimeLeft     = TURN_TIME;
        mCountingDown = true;
    }
コード例 #3
0
    void Start()
    {
        mRestaurantScript = GameManagerScript.GetInstance().GetComponent <RestaurantScript>();

        mPlayerCount = (int)mPlayerCountSlider.value;
        mPlayerCountSlider.onValueChanged.AddListener(OnChangePlayerCount);
        mIsCustomRoles = false;

        InitToggledRoles();
        InitUserRoles();
    }
コード例 #4
0
    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;
    }
コード例 #5
0
ファイル: PassScript.cs プロジェクト: Andy608/DinnerParty
    void Start()
    {
        mTurnManagerScript = GameManagerScript.GetInstance().GetComponent <TurnManagerScript>();
        mRestaurantScript  = GameManagerScript.GetInstance().GetComponent <RestaurantScript>();

        List <Player> players = mRestaurantScript.getAlivePlayers();

        if (mTurnManagerScript.GetCurrentPlayerIndex() <= players.Count - 1)
        {
            ShowPlayerToPassTo();
        }
    }
コード例 #6
0
    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();
    }
コード例 #7
0
    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>();
    }
コード例 #8
0
    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();
    }
コード例 #9
0
    // 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();
    }
コード例 #10
0
    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();
    }
コード例 #11
0
    // 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();
    }
コード例 #12
0
 void Start()
 {
     mRestaurantScript = GameManagerScript.GetInstance().GetComponent <RestaurantScript>();
 }