Esempio 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));
            }
        }
Esempio 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));
        }
Esempio 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;
            }
        }
Esempio 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);
        }
Esempio n. 5
0
 protected override bool IsValid()
 {
     return(!Positional.IsAtPosition(Config.Owner.transform, _config.Target, _config.Tolerance));
 }