Exemplo n.º 1
0
    // Use this for initialization

    public static UI_UnitMiniView MakeView(ScriptableUnitConfig config, Color col, Transform tr)
    {
        GameObject      obj  = Instantiate(Resources.Load("UI/ui_unitminiview")) as GameObject;
        UI_UnitMiniView view = obj.GetComponent <UI_UnitMiniView>();

        view.Init(config, col);
        view.transform.SetParent(tr);

        view.transform.localScale = Vector3.one;

        return(view);
    }
Exemplo n.º 2
0
 void Remove(UI_UnitMiniView view)
 {
     Destroy(view.gameObject);
 }
Exemplo n.º 3
0
    UI_UnitMiniView MakeView(ScriptableUnitConfig config, Transform target)
    {
        UI_UnitMiniView view = UI_UnitMiniView.MakeView(config, FrameColor, target);

        return(view);
    }