コード例 #1
0
ファイル: HtBaseObject.cs プロジェクト: JamesTTMoon/Mps3ft
    public void SetInstantComPrefab(string pSubFolder, MpsModel pParent)
    {
        string fullStr = "Com/" + pSubFolder + "/" + pParent.mName;

        try {
            ("HtRsrcMan  :: SetInstantComPrefab   >>  pSubFolder is " + fullStr).HtLog();

            pParent.mGobj      = (GameObject)MonoBehaviour.Instantiate(Resources.Load(fullStr));
            pParent.mGobj.name = pParent.mName;
            pParent.mGobj.transform.position = pParent.manInitAe;
            pParent.mGobj.transform.Rotate(pParent.manDora);
        } catch {
            // Exception ....

            Ag.LogIntenseWord("Error.GetComPrefab at >> " + fullStr);
            //AgStt.muiHQ.FatalError(null, Error.LOAD_TEXTURE);
        }
    }
コード例 #2
0
ファイル: HtBaseObject.cs プロジェクト: JamesTTMoon/Mps3ft
    public void SetInstantComPrefab(string pSubFolder, MpsModel pParent)
    {
        string fullStr = "Com/" + pSubFolder + "/" + pParent.mName;

        try {
            ("HtRsrcMan  :: SetInstantComPrefab   >>  pSubFolder is " + fullStr).HtLog();

            pParent.mGobj = (GameObject)MonoBehaviour.Instantiate (Resources.Load (fullStr));
            pParent.mGobj.name = pParent.mName;
            pParent.mGobj.transform.position = pParent.manInitAe;
            pParent.mGobj.transform.Rotate (pParent.manDora);
        } catch {
            // Exception ....

            Ag.LogIntenseWord ("Error.GetComPrefab at >> " + fullStr);
            //AgStt.muiHQ.FatalError(null, Error.LOAD_TEXTURE);
        }
    }