Ejemplo n.º 1
0
        public override void OnEnable()
        {
            base.OnEnable();

            if (!Positional.IsAtPosition(Config.Owner.transform, _stealConfig.ToStealFrom.transform.position, 3.0f))
            {
                Config.Owner.PushState(new MoveToState.MoveToConfig(_stealConfig.ToStealFrom.transform.position, Config.Owner, 3.0f));
            }
        }
Ejemplo n.º 2
0
        protected override bool IsValid()
        {
            if (_path == null || !_config.IsPathStillValid())
            {
                return(false);
            }

            return(Time.time - _stateEnterTime < _maxStateDuration &&
                   !Positional.IsAtPosition(Config.Owner.transform, _config.Target, 2.0f));
        }
Ejemplo n.º 3
0
        public override void OnEnable()
        {
            base.OnEnable();

            if (!Positional.IsAtPosition(Config.Owner.transform, ToMine.transform.position))
            {
                Config.Owner.PushState(new PathToState.PathToConfig(Config.Owner, ToMine.transform.position));
                return;
            }
        }
Ejemplo n.º 4
0
        public override bool Update()
        {
            if (!base.Update())
            {
                return(false);
            }

            if (Positional.IsAtPosition(Config.Owner.transform, _stealConfig.ToStealFrom.transform.position, 3.0f))
            {
                Config.Owner.CharacterYoke.Interact = true;
            }

            return(true);
        }
Ejemplo n.º 5
0
 protected override bool IsValid()
 {
     return(!Positional.IsAtPosition(Config.Owner.transform, _config.Target, _config.Tolerance));
 }