Exemple #1
0
        // Use this for initialization
        void Start()
        {
            marks = new List <GameObject>();
            GDEDataManager.Init("gde_data");
            charData = new GDECharacterData(charKey);

            spriteRepo = new SpriteRepository("Sprites/Kanji");

            //setSprite(charData.spriteNames[curStroke]);

            charCorners = new List <Vector3> [charData.numStrokes];
            if (charData.strokes.Count != 0)
            {
                for (int i = 0; i < charData.strokes.Count; i++)
                {
                    charCorners[i] = charData.strokes[i];
                }
            }

            center = new Vector3(0f, 0f, 0f);

            if (showPromptTotal)
            {
                doPromptTotal();
            }

            StartCoroutine(displayStrokeHint(curStroke));
        }
Exemple #2
0
        // Use this for initialization
        void Start()
        {
            //Vector3 position = background.transform.position;

            //for (int i = 0; i < images.Length; i++) {
            //    images[i].
            //}
            spriteRepo = new SpriteRepository("Sprites/Kanji");
        }
Exemple #3
0
        // Use this for initialization
        void Start()
        {
            marks = new List <GameObject>();
            GDEDataManager.Init("gde_data");
            charData = new GDECharacterData(charKey);

            spriteRepo = new SpriteRepository("Sprites/Kanji");

            setSprite(charData.spriteNames[curStroke]);

            charCorners = new List <Vector3> [charData.numStrokes];
            if (charData.strokes.Count != 0)
            {
                for (int i = 0; i < charData.strokes.Count; i++)
                {
                    charCorners[i] = charData.strokes[i];
                }
            }
            //charCorners = new List<List<Vector3>>(charData.numStrokes);
            //drawLine = GameObject.Find("DrawLine");
        }