Exemple #1
0
 void IBootable.Launch()
 {
     foreach (var entity in _Entities)
     {
         _Gate.Join(entity);
     }
 }
 void IBootable.Launch()
 {
     _Updater.Add(_Behavior);
     foreach (var entity in _Entitys)
     {
         _Gate.Join(entity);
     }
 }
        public void Start()
        {
            _Gate.WaitEvent += _OnWaitEntity;
            var entitys = _Finder.Find(_Owner.GetView());

            _Kick((from e in entitys where e.EntityType == ENTITY.ACTOR1 select e).Skip(3).ToArray());

            _Gate.Join(_Door);

            _Contestants.Add(_Gate.Spawn(ENTITY.ACTOR3));
            _Contestants.Add(_Gate.Spawn(ENTITY.ACTOR4));
            _Contestants.Add(_Gate.Spawn(ENTITY.ACTOR5));
        }
Exemple #4
0
        protected override ITicker _Launch()
        {
            _Gate.Join(_Entity);


            var builder = new Regulus.BehaviourTree.Builder();
            var ticker  = builder
                          .Sequence()
                          .Action(() => new WaitSecondStrategy(0.1f))
                          .Action(_HandlePassing)
                          .End()
                          .Build();

            return(ticker);
        }
Exemple #5
0
 public void Start()
 {
     _Chest.UnlockEvent += _OnUnlcokResult;
     _Gate.Join(_Chest);
     _Status = TICKRESULT.RUNNING;
 }