示例#1
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();
    }
示例#2
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();
    }