Пример #1
0
    void instantiateSubactionButton(SubactionDataDefault subData)
    {
        GameObject            go     = NGUITools.AddChild(gameObject, subactionButtonPrefab);
        SubactionCreateButton button = go.GetComponent <SubactionCreateButton>();

        button.SetAction(subData);
        children.Add(go);
    }
Пример #2
0
 // Start is called before the first frame update
 void Awake()
 {
     button = GetComponent <SubactionCreateButton>();
 }