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

        pickColorController.ShowPanel(true, OnSetColorAndCreate);
    }
コード例 #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);
    }