void Start()
 {
     playerMesh = GetComponent <MeshRenderer>();
     scoreBoard = FindObjectOfType <ScoreBoard>();
     myMat      = GetComponent <MeshRenderer>().materials[0];
     baseColour = myMat.color;
     scoreBoard.ChangeLives(lives);
     zOffset     = transform.localPosition.z;
     invunColour = invunColour * 255;
 }
 private void OnTriggerEnter(Collider other)
 {
     if (isKillable)
     {
         if (lives > 0)
         {
             lives--;
             scoreBoard.ChangeLives(lives);
             ResetPlayer();
         }
         else
         {
             PlayerDeath();
         }
     }
 }