Exemplo n.º 1
0
        void Start()
        {
            //sets all stats at the beginning of the game
            level     = 1;
            maxHealth = 15;
            ResetHealth();
            attackDmg   = 2;
            attackRange = 2f;
            moveSpeed   = 7f;

            if (main == null)
            {
                main = this;                 // if no main player, become the main one
            }
            CoroutineManager.Call(RegenHealth());
        }