public int GetTotalSkillpoints()
 {
     if ((Object)GetTargetGameObject().GetComponent <MinionIdentity>() != (Object)null)
     {
         return(GetTargetGameObject().GetComponent <MinionResume>().TotalSkillPointsGained);
     }
     if ((Object)GetTargetGameObject().GetComponent <StoredMinionIdentity>() != (Object)null)
     {
         return(MinionResume.CalculateTotalSkillPointsGained(GetTargetGameObject().GetComponent <StoredMinionIdentity>().TotalExperienceGained));
     }
     Debug.LogError("Could not get minion skill points time");
     return(-1);
 }