Example #1
0
    protected override void Init()
    {
        base.Init();

        this.state       = EvaluatorType.None;
        sensoryComponent = new RavenSensoryComponent(this);

        //TODO 正确的传入参数
        weaponSystem = new WeaponSystem(this, 0, 0, 0);

        pathPlanner = new PathPlanner(this);

        targetSelectionSystem = new TargetSelectSystem(this);

        thinkComponent = new Goal_Think(this);

        thinkComponent.Activate();

        this.SteerComponent.SetAvoidWallParameter(3, 70, 0.15f);

        this.SteerComponent.WallAvoidanceOn();
    }
Example #2
0
 public override void SetGoal(Brain brain, Goal_Think think)
 {
     think.AddGoal_KillTarget(brain);
 }
 public override void SetGoal(Brain brain, Goal_Think think)
 {
     think.AddGoal_RaiseAlly(brain);
 }
 public abstract void SetGoal(Brain brain, Goal_Think think);