Example #1
0
    void Start()
    {
        m_View = GetComponent <Native.BaseNativeEntityView>();

        if (transform.parent != GUI.Instance.hudRoot.transform)
        {
            ((RectTransform)transform).SetParent(GUI.Instance.hudRoot.transform, false);
            transform.localScale.Set(1, 1, 1);
        }
    }
 void Start()
 {
     m_View = GetComponent <Native.BaseNativeEntityView>();
 }