示例#1
0
    private void Awake()
    {
        GetComponent <M4uContextRoot>().Context = this;
        m_CharaImage = GetComponentInChildren <AssetAutoSetCharaImage>();

        SetUpButtons();

        m_defaultWindowPanelSize = m_windowPanel.sizeDelta;
    }
    // Use this for initialization
    void Start()
    {
        m_CharaMasterArray = MasterFinder <MasterDataParamChara> .Instance.GetAll();

        AssetAutoSetCharaImage charaImage = m_QuestDetailBG.GetComponentInChildren <AssetAutoSetCharaImage>();

        m_CharaImageRect = charaImage.gameObject.GetComponent <RectTransform>();

        m_Y
              = m_adjustY
              = (int)m_CharaImageRect.anchoredPosition.y;
        m_OffsetYInputField.text = m_Y.ToString();
    }