Beispiel #1
0
 public void Setup(World world, Vector3 origin, string workerId, FieldWorkerType type)
 {
     this.world      = world;
     this.Origin     = origin;
     this.WorkerId   = workerId;
     this.workerType = type;
 }
Beispiel #2
0
        public void Setup(World world, Vector3 origin, string workerId, FieldWorkerType type)
        {
            this.world      = world;
            this.Origin     = origin;
            this.WorkerId   = workerId;
            this.workerType = type;

            Assert.IsNotNull(this.Settings);
        }
Beispiel #3
0
        public static FieldSettings Get(FieldWorkerType type)
        {
            if (Instance == null)
            {
                Debug.LogError("The Field Dictionary has not been set.");
                return(null);
            }

            FieldSettings settings = null;

            Instance.fieldDic.TryGetValue(type, out settings);

            return(settings);
        }