예제 #1
0
 public EnemyMarker(HumanoidModel target, Vector3 location, HumanoidTargeter founder)
 {
     this.location = location;
     this.target   = target;
     usedBy        = new HashSet <HumanoidTargeter>();
     enemyVantage  = target.InfoGetVantageData();
     enemyVantage.SetLocation(location);
 }
예제 #2
0
    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);
    }