public EnemyMarker(HumanoidModel target, Vector3 location, HumanoidTargeter founder) { this.location = location; this.target = target; usedBy = new HashSet <HumanoidTargeter>(); enemyVantage = target.InfoGetVantageData(); enemyVantage.SetLocation(location); }
public HumanoidVantage InfoGetVantageData() { /* * Use object pooling and return new vantage data */ HumanoidVantage vantageData = new HumanoidVantage( standingHeight, kneelingHeight, layingHeight ); vantageData.SetWeapon(currentWeapon); vantageData.SetLocation(centerBottom.position); return(vantageData); }