コード例 #1
0
    public void Release(IEntiny entiny)
    {
        HUDBoard window = null;

        mBoards.TryGetValue(entiny, out window);
        if (window != null)
        {
            window.Release();
            mBoards.Remove(entiny);
        }
    }
コード例 #2
0
    public HUDBoard Create(IEntiny entiny)
    {
        HUDBoard window = null;

        mBoards.TryGetValue(entiny, out window);
        if (window == null)
        {
            GameObject go = GTPoolManager.Instance.GetObject(GTPrefabKey.PRE_UIBOARD);
            window = go.GET <HUDBoard>();
        }
        window.SetTarget(entiny.CacheTransform);
        window.SetPath(GTPrefabKey.PRE_UIBOARD);
        window.SetVisable(false);
        mBoards.Add(entiny, window);
        return(window);
    }