예제 #1
0
    private ResourceEntry NewResourceEntry(Tag resourceTag, GameUtil.MeasureUnit measure)
    {
        GameObject    gameObject = Util.KInstantiateUI(Prefab_ResourceEntry, EntryContainer.gameObject, true);
        ResourceEntry component  = gameObject.GetComponent <ResourceEntry>();

        component.SetTag(resourceTag, measure);
        return(component);
    }