public void PlayerHitEvent()
 {
     RaycastHit hit;
     if (Physics.Raycast(fpcamera.transform.position, fpcamera.transform.forward, out hit, range))
     {
         if (hit.distance < 3)
         {
             
             if(hit.transform.name == "Green")
             {
                 Debug.Log(hit.transform.name);
                 Debug.Log(hit.distance);
                 tar = hit.transform.GetComponent<BossHealth>();
                 tar.damageTaken(damage);
             }
             else
             {
                 Debug.Log(hit.transform.name);
                 Debug.Log(hit.distance);
                 target = hit.transform.GetComponent<SkeletonHealth>();
                 target.damageTaken(damage);
             }
             
         }
         else
         {
             return;
         }
     }
     else
     {
         return;
     }
 }
 void Start()
 {
     Anim         = GetComponent <Animator>();
     Grid         = GameObject.Find("Grid").GetComponent <Grid>();
     WorldManager = GameObject.Find("WorldManager").GetComponent <WorldManager>();
     Sword        = GetComponentInChildren <Sword>();
     Health       = GetComponent <SkeletonHealth>();
     Sword.setWeaponIsActive(false);
     InitialiseStates();
 }