Ejemplo n.º 1
0
    private void TouchDown(GroundController gc, bool isCover)
    {
        startGc = gc;
        if (charaIdx != null)
        {
            if (fightController.GetJob("P", (int)charaIdx) == 2)
            {
                startGc.onProtection = OnProtection;
            }

            charaGc.AddLast(startGc);
            if (isCover)
            {
                startCover = true;
                startGc.OnCover();
            }
            startGc.ChangeChara(fightController.GetJob("P", (int)charaIdx));

            startCharaImage = SetChess(startGc);
            endCharaImage   = SetChess(startGc);

            if ((int)gc.GetComponent <GroundController> ()._groundType == 99)
            {
                isResetGround = true;
            }
        }
    }