Exemple #1
0
    /// <summary>
    /// use through button
    /// </summary>
    public void OnAdd(PickColorController pickColorController)
    {
        if (!Initialized)
        {
            Debug.LogError("Need Init");
            return;
        }

        pickColorController.ShowPanel(true, OnSetColorAndCreate);
    }
Exemple #2
0
    /// <summary>
    /// use through button
    /// </summary>
    public void OnModify(PickColorController pickColorController)
    {
        if (!Initialized)
        {
            Debug.LogError("Need Init");
            return;
        }

        if (SelectedColorInventoryItem == null)
        {
            return;
        }

        pickColorController.ShowPanel(true, OnSetColor);
    }