Ejemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
        CardBasicComponent.MainBoardColor          = EditorGUILayout.ColorField("MainBoardColor", CardBasicComponent.MainBoardColor);
        CardBasicComponent.MainBoardColorIntensity = EditorGUILayout.FloatField("MainBoardColorIntensity", CardBasicComponent.MainBoardColorIntensity);
        if (GUI.changed)
        {
            CardBasicComponent.SetMainBoardColor(CardBasicComponent.MainBoardColor, CardBasicComponent.MainBoardColorIntensity);
        }

        CardBasicComponent.CardBloomColor          = EditorGUILayout.ColorField("CardBloomColor", CardBasicComponent.CardBloomColor);
        CardBasicComponent.CardBloomColorIntensity = EditorGUILayout.FloatField("CardBloomColorIntensity", CardBasicComponent.CardBloomColorIntensity);
        if (GUI.changed)
        {
            CardBasicComponent.SetCardBloomColor(CardBasicComponent.CardBloomColor, CardBasicComponent.CardBloomColorIntensity);
        }

        CardBasicComponent.PictureColor          = EditorGUILayout.ColorField("PictureColor", CardBasicComponent.PictureColor);
        CardBasicComponent.PictureColorIntensity = EditorGUILayout.FloatField("PictureColorIntensity", CardBasicComponent.PictureColorIntensity);
        if (GUI.changed)
        {
            CardBasicComponent.SetPictureColor(CardBasicComponent.PictureColor, CardBasicComponent.PictureColorIntensity);
        }
    }
Ejemplo n.º 2
0
 public void ChangeCardBloomColor(Color color, float intensity)
 {
     CardBasicComponent?.SetCardBloomColor(color, intensity);
 }