void Awake()
 {
     // Setting up the references.
     anim = GetComponent <Animator>();
     //playerAudio = GetComponent<AudioSource>();
     // Set the initial health of the player.
     currentStamina = startingStamina;
     control        = GetComponent <simplePlayerControl> ();
 }
    void Awake()
    {
        // Setting up the references.
        anim = GetComponent <Animator>();
        //playerAudio = GetComponent<AudioSource>();
        // Set the initial health of the player.
        currentOxygen = startingOxygen;

        gameoverManage = UIObj.GetComponent <GameOverManage>();
        control        = GetComponent <simplePlayerControl> ();
    }