Ejemplo n.º 1
0
 void Start()
 {
     if (isPlayer)
     {
         _character        = GlobalCharacter.generetaChar();
         _character.sprite = Random.Range(1, 4);
     }
 }
Ejemplo n.º 2
0
    void Start()
    {
        GlobalCharacter.Init();


        GlobalCharacter.player.timer = 0;

        ShowCharacter();
    }
Ejemplo n.º 3
0
    void Start()
    {
        GlobalCharacter.Init();

        _boxChar  = _charController.GetComponent <BoxCharController>();
        _boxEnemy = _enemiesController.GetComponent <BoxEnemiesController>();
        _boxAct   = _boxController.GetComponent <BoxAction>();

        _running = true;

        for (int i = 0; i < _buttons.Length; i++)
        {
            _buttons[i].GetComponent <ButtonAction>().character = GlobalCharacter.player;
            _buttons[i].GetComponent <ButtonAction>().fight     = this;
        }

        HideText();
        UpdateAttributes();
    }
Ejemplo n.º 4
0
    void Start()
    {
        GlobalItens.Init();
        GlobalCharacter.Init();
        GlobalWorldMap.Init();
        GlobalQuests.Init();
        GlobalMap.Init();
        GlobalInput.Init();

        _itens = new ArrayList();
        _npcs  = new ArrayList();

        AddItemToMap(GlobalItens.generateAlchemy(AlchemyType.HealLife), new Vector3(64, 96, -5));


        GameCharacter test = GlobalCharacter.generetaChar();

        test.name   = "ERRROR";
        test.sprite = 5;

        AddCharacterToMap(test, new Vector3(32, 32, -10));
    }
Ejemplo n.º 5
0
 void Start()
 {
     GlobalCharacter.Init();
     GlobalItens.Init();
 }