Example #1
0
    public void ResetBeaver()
    {
        cannon.shot = false;
        cannon.ResetCannon();
        beaver.transform.position = new Vector3(startPosition.position.x, startPosition.position.y + cannon.yOffsets[UpgradeManager.instance.GetCannonUpgradeNum()], startPosition.position.z);
        beaver.SetDead(false);
        beaver.Deactivate();
        camera.ResetCamera();
        levelGenerator.ClearLevel();

        powerBar.Activate();
        RunWood = 0;
        AddWood(0);
    }