Example #1
0
 public MonopolyPropSystem(string name, int housecost, int hotelcost, int purchaseprice, int rent, int mortagevalue, bool owned, int owner, bool ownable, int totalhouses, bool mortaged, int tilelocation, PropType type, PropColor colour)
 {
     Name          = name;
     HouseCost     = housecost;
     HotelCost     = hotelcost;
     PurchasePrice = purchaseprice;
     Rent          = rent;
     MortageValue  = mortagevalue;
     Owned         = owned;
     Owner         = owner;
     Ownable       = ownable;
     TotalHouses   = totalhouses;
     Mortaged      = mortaged;
     TileLocation  = tilelocation;
     Type          = type;
     Colour        = colour;
 }
Example #2
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            PropColor propColor = (PropColor)target;

            serializedObject.Update();

            GUILayout.Space(10);

            EditorGUILayout.LabelField("Update mesh color", EditorStyles.boldLabel);
            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.PropertyField(meshRendererProperty);
            if (GUILayout.Button("Self"))
            {
                propColor.meshRenderer = propColor.GetComponentInChildren <MeshRenderer>();
            }
            EditorGUILayout.EndHorizontal();
        }