Ejemplo n.º 1
0
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     UnityEngine.GameObject gameObject = env.Get <GameObject>(this.GameObject);
     gameObject.SetActive(this.Value);
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Unit unit = env.Get<Unit>(Player);
     //env.Add(this.Dir, unit.GameObject.transform.forward);
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     env.Add(Output, new Vector3(X, Y, Z));
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Unit unit = env.Get<Unit>(this.UnitKey);
     //unit.SetVisiableByCount(this.Visiable);
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     throw new NotImplementedException();
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Unit unit = env.Get<Unit>(UnitKey);
     //env.Add(PosKey, unit.Position);
     return(true);
 }
Ejemplo n.º 7
0
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Vector3 dest = CameraMotorComponent.Instance.CalDest();
     //env.Add(this.V, dest);
     return(true);
 }
Ejemplo n.º 8
0
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //this.DelayRun(behaviorTree, env);
     return(true);
 }
Ejemplo n.º 9
0
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //DoVibrate(this.Time);
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Unit[] units = UnitHelper.GetTeamUnits(IsTeamMate);
     //env.Add(UnitsStr, units);
     return(true);
 }
Ejemplo n.º 11
0
 public bool DoRun(BehaviorTree behaviorTree, BTEnv env)
 {
     env.Get <List <long> >(BTEnvKey.NodePath).Add(this.NodeProto.Id);
     return(this.Run(behaviorTree, env));
 }
Ejemplo n.º 12
0
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //env.Add(this.PosKey, FootBallHelper.GetFootBall().GetComponent<PassComponent>().Pos);
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Game.EventSystem.Run(EventIdType.SceneUIType, Visible);
     return(true);
 }
Ejemplo n.º 14
0
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Play();
     return(true);
 }
        private Unit GetUnit(BTEnv env)
        {
            Unit unit = env.Get <Unit>(this.UnitKey);

            return(unit);
        }
Ejemplo n.º 16
0
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Unit unit = env.Get<Unit>(UnitKey);
     //BuffFactory.Create(unit, BuffConfig);
     return(true);
 }
Ejemplo n.º 17
0
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     Log.Debug($"创建UI特效: {this.effect.name}");
     return(true);
 }
Ejemplo n.º 18
0
 protected abstract bool Run(BehaviorTree behaviorTree, BTEnv env);
Ejemplo n.º 19
0
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //GameObject mainCamera = CameraMotorComponent.Instance.Camera.gameObject;
     //env.Add(this.CameraKey, mainCamera);
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //Unit[] units = UnitHelper.GetTeamUnits(!GameStateComponent.Instance.IsMyTeamGold);
     //env.Add(UnitsStr, units);
     return(true);
 }
 protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
 {
     //GameStateComponent game = SceneHelper.Scene.GetComponent<GameStateComponent>();
     //return game.IsFirst;
     return(true);
 }