public void Setup(World world, Vector3 origin, string workerId, FieldWorkerType type) { this.world = world; this.Origin = origin; this.WorkerId = workerId; this.workerType = type; }
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); }
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); }