Пример #1
0
    protected override void Start()
    {
        maxHealth = 5;
        animator  = GetComponent <Animator>();
        rigidBody = GetComponent <Rigidbody2D>();

        base.Start();


        healthbar.SetMaxValue(maxHealth);
        manaBar.SetMaxValue(maxMana);

        levelSystem = FindObjectOfType <GameManager>().GetLevelSystem();
        expBar.SetLevelSystem(levelSystem);
    }