Exemplo n.º 1
0
    public void OnLoad()
    {
        string[] loadingData = DataBasePerfil.LoadDataChar();
        CharNome   = loadingData[0];
        CharClasse = loadingData[1];
        indexHead  = loadingData[2];
        indexBody  = loadingData[3];
        indexLegs  = loadingData[4];

        Debug.Log(CharNome + "/" + CharClasse);
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        string[] loadingData = DataBasePerfil.LoadDataChar();
        NomePersonagem   = loadingData[0];
        ClassePersonagem = loadingData[1];
        IndexHeadP       = int.Parse(loadingData[2]);
        IndexBodyP       = int.Parse(loadingData[3]);
        IndexLegsP       = int.Parse(loadingData[4]);


        Head.GetComponent <SpriteRenderer>().sprite = Visual.GetComponent <DataBaseVisual>().Heads[IndexHeadP];
        Body.GetComponent <SpriteRenderer>().sprite = Visual.GetComponent <DataBaseVisual>().Bodys[IndexBodyP];
        Legs.GetComponent <SpriteRenderer>().sprite = Visual.GetComponent <DataBaseVisual>().Legs[IndexLegsP];
    }
Exemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        player = GetComponent <Transform>();

        anim.SetBool("Parado", true);
        anim.SetBool("DireitaAndando", false);
        anim.SetBool("EsquerdaAndando", false);
        anim.SetBool("FrenteAndando", false);
        anim.SetBool("CostasAndando", false);

        string[] loadingData = DataBasePerfil.LoadDataChar();
        IndexHeadP = int.Parse(loadingData[2]);
        IndexBodyP = int.Parse(loadingData[3]);
        IndexLegsP = int.Parse(loadingData[4]);

        HeadNome = Visual.GetComponent <DataBaseVisual>().Heads[IndexHeadP].name;
        BodyNome = Visual.GetComponent <DataBaseVisual>().Bodys[IndexBodyP].name;
        LegNome  = Visual.GetComponent <DataBaseVisual>().Legs[IndexLegsP].name;
    }