Exemplo n.º 1
0
        //ロード
        void LoadMapTipSprite()
        {
            m_mapShapeTexList = new List <Texture>();
            m_mapShapeTexList = NonResources.LoadAll <Texture>(MapEditorMain.MapTipFrontImagePath);

            m_mapPaletteSprites = new List <Sprite>();
            m_mapPaletteSprites.AddRange(Resources.LoadAll <Sprite>(MapEditorMain.MapTileName));

            AssetDatabase.Refresh();

            m_isLoadSprite = true;
        }
Exemplo n.º 2
0
        //ロード
        void LoadMapTipSprite()
        {
            // 読み込み(Resources.LoadAllを使うのがミソ)
            m_objMaker = new MapObjMaker();
            m_dummy    = new Texture2D(TIPSIZE, TIPSIZE);
            m_dummy2   = new Texture2D((int)(TIPSIZE * 2.5f), (int)(TIPSIZE * 1.5f));
            m_dummy3   = new Texture2D((int)(TIPSIZE * 1.5f), (int)(TIPSIZE * 1.5f));

            m_mapShapeTex = new List <Texture>();
            m_mapShapeTex = NonResources.LoadAll <Texture>(MapEditorMain.MapTipPaletteImagePath);

            m_mapPaletteSprite = new List <Sprite>();
            m_mapPaletteSprite.AddRange(Resources.LoadAll <Sprite>(MapEditorMain.MapTileName));

            AssetDatabase.Refresh();

            m_isLoadSprite = true;
        }
Exemplo n.º 3
0
    void Update()
    {
        counter++;
        if (counter < 10)
        {
            return;
        }
        counter = 0;
        string fileName = index.ToString("00000000") + "_keypoints";

        if (System.IO.File.Exists(Application.dataPath + "/../outputs/" + fileName + ".json") != false)
        {
            var      textAsset = NonResources.Load <TextAsset>(Application.dataPath + "/../outputs/" + fileName);
            OpenPose data      = fileLoader.ReadOpenPoseJson(textAsset.text);
            var      result    = fileLoader.DrawOpenPoseData(data);
            resultPoint.team1Score += result.team1Score;
            resultPoint.team2Score += result.team2Score;
            index++;
        }
    }