示例#1
0
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     env.Add(this.FloatKey, this.Value);
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //return GuideComponent.Instance.IsEnd;
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //GuideComponent.Instance.ToNextGuideTree();
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Game.EventSystem.Run(EventIdType.GuideUIVisible, State);
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Game.EventSystem.Run(EventIdType.ShowGuideText, Text);
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //return GameStateComponent.Instance.IsMyTeamGold;
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //   Unit unit = env.Get<Unit>(UnitKey);
     //return unit.GetComponent<BuffComponent>().HasBuff(this.BuffConfigId);
     return(true);
 }
示例#8
0
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Unit unit = env.Get<Unit>(UnitName);
     //return FootBallHelper.IsOnSize(unit);
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Game.EventSystem.Run(EventIdType.GuideSendProgress, Progress);
     return(true);
 }
示例#10
0
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Game.EventSystem.Run(EventIdType.GuideStaticPanelSwitch, Switch);
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //         Spell spell = env.Get<Spell>(this.SpellKey);
     //env.Add(this.UnitKey, spell.Caster);
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Game.EventSystem.Run(EventIdType.GuidePassEnable, Enable);
     return(true);
 }
示例#13
0
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //GameStateComponent.Instance.IsGuide = false;
     return(true);
 }
示例#14
0
        protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
        {
            int team = env.Get <int>(this.Team);

            return(team == 1);
        }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //UIHelper.SetBreakPauseButtonState(StateType);
     return(true);
 }
示例#16
0
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //      Unit targetUnit = env.Get<Unit>(this.TargetUnit);
     //CameraMotorComponent.Instance?.SetTarget(targetUnit);
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Unit unit = env.Get<Unit>(this.UnitKey);
     //return ActorHelper.MyActor().Id == unit.Actor.Id;
     return(true);
 }
示例#18
0
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Game.EventSystem.Run(EventIdType.ShowScoreBoardUI);
     return(true);
 }
示例#19
0
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Game.EventSystem.Run(EventIdType.GuideFinalEffectNodeSwitch, IsOn);
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //         Buff buff = env.Get<Buff>(BuffKey);
     //env.Add(this.UnitKey, buff.Target);
     return(true);
 }
        protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
        {
            Unit unit = env.Get <Unit>(this.Unit);

            return(unit == null);
        }
示例#22
0
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Unit unit = env.Get<Unit>(UnitName);
     //unit.GetComponent<UnitAppearanceComponent>().ApplyAppearance(AppearanceName);
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Unit unit = env.Get<Unit>(this.Unit);
     //CameraMotorComponent.Instance.LookAt(unit.Position);
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Unit camera = CameraComponent.Instance.Unit;
     //env.Add(this.Camera, camera);
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //CameraMotorComponent.Instance.UpdateRotation();
     return(true);
 }
示例#26
0
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Game.EventSystem.Run(EventIdType.ChangeSkillBtnEnable, BSkillEnabled);
     return(true);
 }
示例#27
0
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Unit unit = env.Get<Unit>(this.UnitKey);
     //unit.GetComponent<MotorComponent>().Stop();
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //int goalCount = SceneHelper.Scene.GetComponent<GameStateComponent>().GoalCount;
     //env.Add(this.GoalKey, goalCount);
     return(true);
 }
示例#29
0
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env) { return true; }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //GuideComponent.Instance.RemoveEffect(Name);
     return(true);
 }