コード例 #1
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();
    }