Exemple #1
0
        public virtual ResultInfo<bool> CanBeRestored()
        {
            bool isNearBench = false;
            var bench = ObjectUtil.GetBenchInScene();
            if (bench != null)
                isNearBench = ObjectUtil.HeroIsWithinDistanceOf(bench, 10f);

            return new(isNearBench, string.Format(MustBeNearBench, "restore"));
        }