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(); }
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(); }