示例#1
0
    public void OpenGameMissionPopup()
    {
        UIPostGameMissionsPopup uiPostGameMissionsPopup = GameObject.Instantiate(PoolMan.Instance.uiMissionsPopupPrefab).GetComponent <UIPostGameMissionsPopup>();

        uiPostGameMissionsPopup.transform.SetParent(this.hudCanvas.transform);
        uiPostGameMissionsPopup.GetComponent <RectTransform>().anchoredPosition = Vector3.zero;
        uiPostGameMissionsPopup.GetComponent <RectTransform>().localScale       = Vector3.one;
        uiPostGameMissionsPopup.Open();
    }